mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
404 lines
13 KiB
JSON
404 lines
13 KiB
JSON
[{
|
|
"testCaseDescription": "go-selector-expressions-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"selector-expressions.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'method call()' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"selector-expressions.go"
|
|
],
|
|
"sha1": "3e330aa5b34a34de6619cfa2326f646c65e65d38",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "d465893dae4c61c6642652aecfa4cf8cdd0cec7b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-selector-expressions-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"selector-expressions.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'main' module with the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"selector-expressions.go"
|
|
],
|
|
"sha1": "d465893dae4c61c6642652aecfa4cf8cdd0cec7b",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "fb3244362af62e79102c86337ba870206a65c59d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-selector-expressions-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"selector-expressions.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
2
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
2
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'x' identifier with the 'a' identifier in the method call() function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
3
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
3
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'y' identifier with the 'b' identifier in the method call() function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
5
|
|
],
|
|
"end": [
|
|
3,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
5
|
|
],
|
|
"end": [
|
|
3,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'z' identifier with the 'c' identifier in the method call() function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"selector-expressions.go"
|
|
],
|
|
"sha1": "fb3244362af62e79102c86337ba870206a65c59d",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "ae5cdd2a967451123e664cbaf2180465ddef7adc"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-selector-expressions-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"selector-expressions.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
2
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
2
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'x' identifier in the method call() function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
3
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
3
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'y' identifier in the method call() function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
5
|
|
],
|
|
"end": [
|
|
3,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
5
|
|
],
|
|
"end": [
|
|
3,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'c' identifier with the 'z' identifier in the method call() function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"selector-expressions.go"
|
|
],
|
|
"sha1": "ae5cdd2a967451123e664cbaf2180465ddef7adc",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "ae7e1089d95311e8f309d290cfa6702bc894f0c2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-selector-expressions-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"selector-expressions.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'method call()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'method call()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'method call()' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"selector-expressions.go"
|
|
],
|
|
"sha1": "ae7e1089d95311e8f309d290cfa6702bc894f0c2",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "b494f47f2137143df4f3697659a87affed456e3d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-selector-expressions-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"selector-expressions.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
1
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'main' module with the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"selector-expressions.go"
|
|
],
|
|
"sha1": "b494f47f2137143df4f3697659a87affed456e3d",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "51a9dd5453e3efd295eba76d0cbd96922a6d68d7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-selector-expressions-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"selector-expressions.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'method call()' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"selector-expressions.go"
|
|
],
|
|
"sha1": "51a9dd5453e3efd295eba76d0cbd96922a6d68d7",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "7c6d018b50c349cf036298023eca3aea11b7828a"
|
|
}]
|