1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/go/selector-expressions.json
2016-11-02 15:47:59 -04:00

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": "6dbbebce64033d945f4d9a3dfa61b295cde15882",
"gitDir": "test/corpus/repos/go",
"sha2": "32d5848169d98f9bde8f23556e5a3670b20c1afb"
}
,{
"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": "32d5848169d98f9bde8f23556e5a3670b20c1afb",
"gitDir": "test/corpus/repos/go",
"sha2": "23a0e15e525c0928e1527c8a27d53b92f304c6bf"
}
,{
"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": "23a0e15e525c0928e1527c8a27d53b92f304c6bf",
"gitDir": "test/corpus/repos/go",
"sha2": "2b0dd84c44a87f4caeaf2524c8bc99d76ac48dc3"
}
,{
"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": "2b0dd84c44a87f4caeaf2524c8bc99d76ac48dc3",
"gitDir": "test/corpus/repos/go",
"sha2": "f84acebdca9146ad9bb58bbcc8b2e82864b03f23"
}
,{
"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": "f84acebdca9146ad9bb58bbcc8b2e82864b03f23",
"gitDir": "test/corpus/repos/go",
"sha2": "886f72c88b9e5e0296d1359b5a32492787ac980c"
}
,{
"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": "886f72c88b9e5e0296d1359b5a32492787ac980c",
"gitDir": "test/corpus/repos/go",
"sha2": "daea6acc07b0b3735dff936bf68383d1b2305d17"
}
,{
"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": "daea6acc07b0b3735dff936bf68383d1b2305d17",
"gitDir": "test/corpus/repos/go",
"sha2": "404b0d6eb085f29455c11f20db752f297069f5b7"
}]