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-10 15:36:44 -05: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": "4f37802913bc6d0558da212b36497be55209c99b",
"gitDir": "test/corpus/repos/go",
"sha2": "41f3987a397e005336a1b76c91719e753cd5e3f4"
}
,{
"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": "41f3987a397e005336a1b76c91719e753cd5e3f4",
"gitDir": "test/corpus/repos/go",
"sha2": "201915f3eb57c8f53b28084b3080eae7376cf15d"
}
,{
"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": "201915f3eb57c8f53b28084b3080eae7376cf15d",
"gitDir": "test/corpus/repos/go",
"sha2": "79f050f2e282ea00bd1a5a2379c9b22ec63a216e"
}
,{
"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": "79f050f2e282ea00bd1a5a2379c9b22ec63a216e",
"gitDir": "test/corpus/repos/go",
"sha2": "8a2fbcba91669a62575ba3e24b843c37a3e71184"
}
,{
"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": "8a2fbcba91669a62575ba3e24b843c37a3e71184",
"gitDir": "test/corpus/repos/go",
"sha2": "1f5ef7ae6dda1abe457f1344d1b89da8687703b9"
}
,{
"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": "1f5ef7ae6dda1abe457f1344d1b89da8687703b9",
"gitDir": "test/corpus/repos/go",
"sha2": "a1ba277b8446b3a8e12bbeaa2146aaf2388971d3"
}
,{
"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": "a1ba277b8446b3a8e12bbeaa2146aaf2388971d3",
"gitDir": "test/corpus/repos/go",
"sha2": "7a0e56fcfbef48bf43e71d2d33c4b74a2cf05cb5"
}]