mirror of
https://github.com/github/semantic.git
synced 2024-12-24 15:35:14 +03:00
599 lines
19 KiB
JSON
599 lines
19 KiB
JSON
[{
|
|
"testCaseDescription": "go-if-statements-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'main' module with the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-statements.go"
|
|
],
|
|
"sha1": "df19efe0f9c7778e2d07b53ee7eb0c542af2d71c",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "3f82812907f84a6ee493eee399fc421defbc3272"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-if-statements-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-statements.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x()' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y := b(); c' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
9,
|
|
1
|
|
],
|
|
"end": [
|
|
13,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'z()' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
14,
|
|
1
|
|
],
|
|
"end": [
|
|
16,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a()' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
17,
|
|
1
|
|
],
|
|
"end": [
|
|
19,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a := b(); c' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
20,
|
|
1
|
|
],
|
|
"end": [
|
|
24,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a()' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-statements.go"
|
|
],
|
|
"sha1": "3f82812907f84a6ee493eee399fc421defbc3272",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "80127c59524c95aadde6e5e7394ee2cad8b867c1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-if-statements-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
4
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
4
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'x' identifier with the 'a' identifier in the a() function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
6,
|
|
4
|
|
],
|
|
"end": [
|
|
6,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
6,
|
|
4
|
|
],
|
|
"end": [
|
|
6,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'y' identifier with the 'a' identifier in the a variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
9,
|
|
4
|
|
],
|
|
"end": [
|
|
9,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
9,
|
|
4
|
|
],
|
|
"end": [
|
|
9,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'z' identifier with the 'a' identifier in the a() function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-statements.go"
|
|
],
|
|
"sha1": "80127c59524c95aadde6e5e7394ee2cad8b867c1",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "ec7de16aef0714bea2beecccc70f9684dfc4d7e2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-if-statements-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
4
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
4
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'x' identifier in the x() function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
6,
|
|
4
|
|
],
|
|
"end": [
|
|
6,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
6,
|
|
4
|
|
],
|
|
"end": [
|
|
6,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'y' identifier in the y variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
9,
|
|
4
|
|
],
|
|
"end": [
|
|
9,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
9,
|
|
4
|
|
],
|
|
"end": [
|
|
9,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'z' identifier in the z() function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-statements.go"
|
|
],
|
|
"sha1": "ec7de16aef0714bea2beecccc70f9684dfc4d7e2",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "8a1ef67a111b7ff44f3875df346de9e299aa9e58"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-if-statements-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-statements.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x()' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y := b(); c' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
9,
|
|
1
|
|
],
|
|
"end": [
|
|
13,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'z()' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
14,
|
|
1
|
|
],
|
|
"end": [
|
|
16,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a()' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
17,
|
|
1
|
|
],
|
|
"end": [
|
|
19,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a := b(); c' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
20,
|
|
1
|
|
],
|
|
"end": [
|
|
24,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a()' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
14,
|
|
1
|
|
],
|
|
"end": [
|
|
16,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x()' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
17,
|
|
1
|
|
],
|
|
"end": [
|
|
19,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y := b(); c' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
20,
|
|
1
|
|
],
|
|
"end": [
|
|
24,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'z()' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-statements.go"
|
|
],
|
|
"sha1": "8a1ef67a111b7ff44f3875df346de9e299aa9e58",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "814d0f761dac47c9a377d8c888c5be926e4eceb1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-if-statements-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-statements.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a()' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a := b(); c' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
9,
|
|
1
|
|
],
|
|
"end": [
|
|
13,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a()' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-statements.go"
|
|
],
|
|
"sha1": "814d0f761dac47c9a377d8c888c5be926e4eceb1",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "94a66f44b7271a7d1c3fb0e5907b8eb55dcbc6a1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-if-statements-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
1
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'main' module with the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-statements.go"
|
|
],
|
|
"sha1": "94a66f44b7271a7d1c3fb0e5907b8eb55dcbc6a1",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "a87789c4ba756c69611642c5ff1d87406a577d2b"
|
|
}]
|