mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
563 lines
19 KiB
JSON
563 lines
19 KiB
JSON
[{
|
|
"testCaseDescription": "go-go-and-defer-statements-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"go-and-defer-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": [
|
|
"go-and-defer-statements.go"
|
|
],
|
|
"sha1": "52c2367740c0d2f7f66fbb1638b6bbe52b8bb586",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "ff145520e936a2f8287e7b7f560e648c86e37d73"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-go-and-defer-statements-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"go-and-defer-statements.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
7
|
|
],
|
|
"end": [
|
|
3,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'identifier()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
4
|
|
],
|
|
"end": [
|
|
4,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'identifier()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
7
|
|
],
|
|
"end": [
|
|
5,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'identifier()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
4
|
|
],
|
|
"end": [
|
|
6,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'identifier()' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"go-and-defer-statements.go"
|
|
],
|
|
"sha1": "ff145520e936a2f8287e7b7f560e648c86e37d73",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "35d23458ecbda705d91d36133acb3ee06114160e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-go-and-defer-statements-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"go-and-defer-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
7
|
|
],
|
|
"end": [
|
|
3,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
7
|
|
],
|
|
"end": [
|
|
3,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'x' identifier in the identifier() function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
9
|
|
],
|
|
"end": [
|
|
3,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
9
|
|
],
|
|
"end": [
|
|
3,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'y' identifier in the identifier() function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
4
|
|
],
|
|
"end": [
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
4
|
|
],
|
|
"end": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'c' identifier with the 'x' identifier in the identifier() function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
6
|
|
],
|
|
"end": [
|
|
4,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
6
|
|
],
|
|
"end": [
|
|
4,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'd' identifier with the 'y' identifier in the identifier() function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"go-and-defer-statements.go"
|
|
],
|
|
"sha1": "35d23458ecbda705d91d36133acb3ee06114160e",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "f88c96f73dcf4e7e57a35b85a54babeb4b8be7c1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-go-and-defer-statements-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"go-and-defer-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
7
|
|
],
|
|
"end": [
|
|
3,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
7
|
|
],
|
|
"end": [
|
|
3,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'x' identifier with the 'a' identifier in the identifier() function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
9
|
|
],
|
|
"end": [
|
|
3,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
9
|
|
],
|
|
"end": [
|
|
3,
|
|
10
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'y' identifier with the 'b' identifier in the identifier() function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
4
|
|
],
|
|
"end": [
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
4
|
|
],
|
|
"end": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'x' identifier with the 'c' identifier in the identifier() function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
6
|
|
],
|
|
"end": [
|
|
4,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
6
|
|
],
|
|
"end": [
|
|
4,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'y' identifier with the 'd' identifier in the identifier() function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"go-and-defer-statements.go"
|
|
],
|
|
"sha1": "f88c96f73dcf4e7e57a35b85a54babeb4b8be7c1",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "b0fad2ef7fadce069db33e4d5d351cf07381ad0c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-go-and-defer-statements-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"go-and-defer-statements.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
7
|
|
],
|
|
"end": [
|
|
3,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'identifier()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
4
|
|
],
|
|
"end": [
|
|
4,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'identifier()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
7
|
|
],
|
|
"end": [
|
|
5,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'identifier()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
4
|
|
],
|
|
"end": [
|
|
6,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'identifier()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
7
|
|
],
|
|
"end": [
|
|
5,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'identifier()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
4
|
|
],
|
|
"end": [
|
|
6,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'identifier()' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"go-and-defer-statements.go"
|
|
],
|
|
"sha1": "b0fad2ef7fadce069db33e4d5d351cf07381ad0c",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "23967cd45fb4ea3b1ba4510a47506b8782b1842a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-go-and-defer-statements-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"go-and-defer-statements.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
7
|
|
],
|
|
"end": [
|
|
3,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'identifier()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
4
|
|
],
|
|
"end": [
|
|
4,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'identifier()' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"go-and-defer-statements.go"
|
|
],
|
|
"sha1": "23967cd45fb4ea3b1ba4510a47506b8782b1842a",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "f0dc69f90f6294734196eb47b4391629a1b7ef82"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-go-and-defer-statements-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"go-and-defer-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": [
|
|
"go-and-defer-statements.go"
|
|
],
|
|
"sha1": "f0dc69f90f6294734196eb47b4391629a1b7ef82",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "c69fcfce40f178714107964705a6370513f7733e"
|
|
}]
|