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": "9f04ec591c888fe5348e511933c02894893355de",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "8c185f49786d2ceef7d3f5e6b800fb68f3df70aa"
|
|
}
|
|
,{
|
|
"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": "8c185f49786d2ceef7d3f5e6b800fb68f3df70aa",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "2dfd3d25ec45d460a738a5edc2b5bc6238e457b9"
|
|
}
|
|
,{
|
|
"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": "2dfd3d25ec45d460a738a5edc2b5bc6238e457b9",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "5c1e7e86d534b1ac21db41adc72e24f4e813e4fe"
|
|
}
|
|
,{
|
|
"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": "5c1e7e86d534b1ac21db41adc72e24f4e813e4fe",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "8408f39820d7955c33c92a2c45c89a49bc7110a2"
|
|
}
|
|
,{
|
|
"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": "8408f39820d7955c33c92a2c45c89a49bc7110a2",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "afea55c94fda87042f4719bf7364578a2eaa5e96"
|
|
}
|
|
,{
|
|
"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": "afea55c94fda87042f4719bf7364578a2eaa5e96",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "aeceaf0f4247bb860e1d7cf2d57f32fc03711ddc"
|
|
}
|
|
,{
|
|
"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": "aeceaf0f4247bb860e1d7cf2d57f32fc03711ddc",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "8fc4d3eeaf0f9ccfc06d1f737bf7c872fb9b0cf2"
|
|
}]
|