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 18:46:48 -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": "2fada52b4ff2072073a39713c6bafe35c9b47c45",
"gitDir": "test/corpus/repos/go",
"sha2": "b1ea076c3202379e658081b58bd0fdde8b3724a8"
}
,{
"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": "b1ea076c3202379e658081b58bd0fdde8b3724a8",
"gitDir": "test/corpus/repos/go",
"sha2": "3dbab4fd93b3f1f991bf0794d3c75eddb6a357e6"
}
,{
"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": "3dbab4fd93b3f1f991bf0794d3c75eddb6a357e6",
"gitDir": "test/corpus/repos/go",
"sha2": "717f90f09e502e018f4a18e013a1958080391808"
}
,{
"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": "717f90f09e502e018f4a18e013a1958080391808",
"gitDir": "test/corpus/repos/go",
"sha2": "73f0bf5fbd32f89752e69cd9474ed7a333596260"
}
,{
"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": "73f0bf5fbd32f89752e69cd9474ed7a333596260",
"gitDir": "test/corpus/repos/go",
"sha2": "87b7e33e42e41ed21c3de8deacc17bbaf2b8b8a5"
}
,{
"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": "87b7e33e42e41ed21c3de8deacc17bbaf2b8b8a5",
"gitDir": "test/corpus/repos/go",
"sha2": "a217800e791acec298efed7f385fc918c44e8314"
}
,{
"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": "a217800e791acec298efed7f385fc918c44e8314",
"gitDir": "test/corpus/repos/go",
"sha2": "b9862dee8c71173f167b0eeeb31df710b7a10fb8"
}]