1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00
semantic/test/corpus/diff-summaries/go/go-and-defer-statements.json
2016-11-02 14:37:30 -04:00

563 lines
19 KiB
JSON

[{
"testCaseDescription": "go-go-and-defer-statements-insert-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"sha1": "b0b32b87d35e9ced404d377dedc47c6f14c26929",
"gitDir": "test/corpus/repos/go",
"sha2": "9f676ef8698904539a7baadbe5c83f25229b59b5"
}
,{
"testCaseDescription": "go-go-and-defer-statements-replacement-insert-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"insert": {
"start": [
3,
7
],
"end": [
3,
12
]
}
},
"summary": "Added the 'identifier()' function call"
},
{
"span": {
"insert": {
"start": [
4,
4
],
"end": [
4,
9
]
}
},
"summary": "Added the 'identifier()' function call"
},
{
"span": {
"insert": {
"start": [
5,
7
],
"end": [
5,
12
]
}
},
"summary": "Added the 'identifier()' function call"
},
{
"span": {
"insert": {
"start": [
6,
4
],
"end": [
6,
9
]
}
},
"summary": "Added the 'identifier()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"sha1": "9f676ef8698904539a7baadbe5c83f25229b59b5",
"gitDir": "test/corpus/repos/go",
"sha2": "e8e39d5f896adce7b2ab3e49dd498c1f834bcb2f"
}
,{
"testCaseDescription": "go-go-and-defer-statements-delete-insert-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
7
],
"end": [
3,
8
]
},
{
"start": [
3,
7
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the identifier() function call"
},
{
"span": {
"replace": [
{
"start": [
3,
9
],
"end": [
3,
10
]
},
{
"start": [
3,
9
],
"end": [
3,
10
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier in the identifier() function call"
},
{
"span": {
"replace": [
{
"start": [
4,
4
],
"end": [
4,
5
]
},
{
"start": [
4,
4
],
"end": [
4,
5
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'x' identifier in the identifier() function call"
},
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
7
]
},
{
"start": [
4,
6
],
"end": [
4,
7
]
}
]
},
"summary": "Replaced the 'd' identifier with the 'y' identifier in the identifier() function call"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"sha1": "e8e39d5f896adce7b2ab3e49dd498c1f834bcb2f",
"gitDir": "test/corpus/repos/go",
"sha2": "e86fea264834370032cc145ccd2f0baca18f2b04"
}
,{
"testCaseDescription": "go-go-and-defer-statements-replacement-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
7
],
"end": [
3,
8
]
},
{
"start": [
3,
7
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in the identifier() function call"
},
{
"span": {
"replace": [
{
"start": [
3,
9
],
"end": [
3,
10
]
},
{
"start": [
3,
9
],
"end": [
3,
10
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier in the identifier() function call"
},
{
"span": {
"replace": [
{
"start": [
4,
4
],
"end": [
4,
5
]
},
{
"start": [
4,
4
],
"end": [
4,
5
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'c' identifier in the identifier() function call"
},
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
7
]
},
{
"start": [
4,
6
],
"end": [
4,
7
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'd' identifier in the identifier() function call"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"sha1": "e86fea264834370032cc145ccd2f0baca18f2b04",
"gitDir": "test/corpus/repos/go",
"sha2": "ce5b1ef93ca7cb270e7f8a10efcaf61475ac365a"
}
,{
"testCaseDescription": "go-go-and-defer-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"delete": {
"start": [
3,
7
],
"end": [
3,
12
]
}
},
"summary": "Deleted the 'identifier()' function call"
},
{
"span": {
"delete": {
"start": [
4,
4
],
"end": [
4,
9
]
}
},
"summary": "Deleted the 'identifier()' function call"
},
{
"span": {
"delete": {
"start": [
5,
7
],
"end": [
5,
12
]
}
},
"summary": "Deleted the 'identifier()' function call"
},
{
"span": {
"delete": {
"start": [
6,
4
],
"end": [
6,
9
]
}
},
"summary": "Deleted the 'identifier()' function call"
},
{
"span": {
"insert": {
"start": [
5,
7
],
"end": [
5,
12
]
}
},
"summary": "Added the 'identifier()' function call"
},
{
"span": {
"insert": {
"start": [
6,
4
],
"end": [
6,
9
]
}
},
"summary": "Added the 'identifier()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"sha1": "ce5b1ef93ca7cb270e7f8a10efcaf61475ac365a",
"gitDir": "test/corpus/repos/go",
"sha2": "9c48a60c63a374f1d5dd74a0c091af0312afaa84"
}
,{
"testCaseDescription": "go-go-and-defer-statements-delete-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"delete": {
"start": [
3,
7
],
"end": [
3,
12
]
}
},
"summary": "Deleted the 'identifier()' function call"
},
{
"span": {
"delete": {
"start": [
4,
4
],
"end": [
4,
9
]
}
},
"summary": "Deleted the 'identifier()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"sha1": "9c48a60c63a374f1d5dd74a0c091af0312afaa84",
"gitDir": "test/corpus/repos/go",
"sha2": "6c7e9142b7eb4a071be5ebf516e0304b7e9048a3"
}
,{
"testCaseDescription": "go-go-and-defer-statements-delete-rest-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"sha1": "6c7e9142b7eb4a071be5ebf516e0304b7e9048a3",
"gitDir": "test/corpus/repos/go",
"sha2": "ac67e54df719e8cba21a6e66ccf9e476f42fdb4f"
}]