1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/go/const-declarations.json

485 lines
16 KiB
JSON
Raw Normal View History

2016-11-01 02:23:25 +03:00
[{
"testCaseDescription": "go-const-declarations-insert-test",
2016-11-01 02:23:25 +03:00
"expectedResult": {
"changes": {
"const-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
2016-11-01 03:59:04 +03:00
1
2016-11-01 02:23:25 +03:00
],
"end": [
3,
15
]
}
},
2016-11-01 03:59:04 +03:00
"summary": "Added the 'variable' variable"
2016-11-01 02:23:25 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations.go"
],
2016-11-01 23:24:34 +03:00
"sha1": "0ea4a11ebabe3d288196e9220f38862a41f22c9b",
2016-11-01 02:23:25 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-01 23:24:34 +03:00
"sha2": "5214a22d8be6d33b2273c3bdb98d8943d0148157"
2016-11-01 02:23:25 +03:00
}
,{
"testCaseDescription": "go-const-declarations-replacement-insert-test",
2016-11-01 02:23:25 +03:00
"expectedResult": {
"changes": {
"const-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
2016-11-01 03:59:04 +03:00
1
2016-11-01 02:23:25 +03:00
],
"end": [
3,
22
]
}
},
2016-11-01 03:59:04 +03:00
"summary": "Added the 'variable' variable"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
15
]
}
},
"summary": "Added the 'variable' variable"
2016-11-01 02:23:25 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations.go"
],
2016-11-01 23:24:34 +03:00
"sha1": "5214a22d8be6d33b2273c3bdb98d8943d0148157",
2016-11-01 02:23:25 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-01 23:24:34 +03:00
"sha2": "9446173c105e85300d51cbc86fa2ed22d83cd06f"
2016-11-01 02:23:25 +03:00
}
,{
"testCaseDescription": "go-const-declarations-delete-insert-test",
2016-11-01 02:23:25 +03:00
"expectedResult": {
"changes": {
"const-declarations.go": [
{
"span": {
"replace": [
{
"start": [
3,
7
],
"end": [
3,
10
]
},
{
"start": [
3,
7
],
"end": [
3,
11
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'zero' identifier in the const zero = 0 variable of the 'main' module statement"
2016-11-01 02:23:25 +03:00
},
{
"span": {
"delete": {
"start": [
3,
12
],
"end": [
3,
15
]
}
},
"summary": "Deleted the 'two' identifier in the const zero = 0 variable of the 'main' module statement"
2016-11-01 02:23:25 +03:00
},
{
"span": {
"replace": [
{
"start": [
3,
18
],
"end": [
3,
19
]
},
{
"start": [
3,
14
],
"end": [
3,
15
]
}
]
},
"summary": "Replaced '1' with '0' in the const zero = 0 variable of the 'main' module statement"
2016-11-01 02:23:25 +03:00
},
{
"span": {
"delete": {
"start": [
3,
21
],
"end": [
3,
22
]
}
},
"summary": "Deleted '2' in the const zero = 0 variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
3,
18
],
"end": [
3,
19
]
},
{
"start": [
3,
14
],
"end": [
3,
15
]
}
]
},
"summary": "Replaced '1' with '0' in the const zero = 0 variable of the 'main' module statement"
},
{
"span": {
"delete": {
"start": [
3,
21
],
"end": [
3,
22
]
}
},
"summary": "Deleted '2' in the const zero = 0 variable of the 'main' module statement"
2016-11-01 02:23:25 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations.go"
],
2016-11-01 23:24:34 +03:00
"sha1": "9446173c105e85300d51cbc86fa2ed22d83cd06f",
2016-11-01 02:23:25 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-01 23:24:34 +03:00
"sha2": "320a3e56c67251a5b4e7ae48ed944976d2a6ffe7"
2016-11-01 02:23:25 +03:00
}
,{
"testCaseDescription": "go-const-declarations-replacement-test",
2016-11-01 02:23:25 +03:00
"expectedResult": {
"changes": {
"const-declarations.go": [
{
"span": {
"replace": [
{
"start": [
3,
7
],
"end": [
3,
11
]
},
{
"start": [
3,
7
],
"end": [
3,
10
]
}
]
},
"summary": "Replaced the 'zero' identifier with the 'one' identifier in the const one, two = 1, 2 variable of the 'main' module statement"
2016-11-01 02:23:25 +03:00
},
{
"span": {
"insert": {
"start": [
3,
12
],
"end": [
3,
15
]
}
},
"summary": "Added the 'two' identifier in the const one, two = 1, 2 variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
3,
14
],
"end": [
3,
15
]
},
{
"start": [
3,
18
],
"end": [
3,
19
]
}
]
},
"summary": "Replaced '0' with '1' in the const one, two = 1, 2 variable of the 'main' module statement"
},
{
"span": {
"insert": {
"start": [
3,
21
],
"end": [
3,
22
]
}
},
"summary": "Added '2' in the const one, two = 1, 2 variable of the 'main' module statement"
2016-11-01 02:23:25 +03:00
},
{
"span": {
"replace": [
{
"start": [
3,
14
],
"end": [
3,
15
]
},
{
"start": [
3,
18
],
"end": [
3,
19
]
}
]
},
"summary": "Replaced '0' with '1' in the const one, two = 1, 2 variable of the 'main' module statement"
2016-11-01 02:23:25 +03:00
},
{
"span": {
"insert": {
"start": [
3,
21
],
"end": [
3,
22
]
}
},
"summary": "Added '2' in the const one, two = 1, 2 variable of the 'main' module statement"
2016-11-01 02:23:25 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations.go"
],
2016-11-01 23:24:34 +03:00
"sha1": "320a3e56c67251a5b4e7ae48ed944976d2a6ffe7",
2016-11-01 02:23:25 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-01 23:24:34 +03:00
"sha2": "8cbf752f440f76d155f7051b8a64b0211edb8b4e"
2016-11-01 02:23:25 +03:00
}
,{
"testCaseDescription": "go-const-declarations-delete-replacement-test",
2016-11-01 02:23:25 +03:00
"expectedResult": {
"changes": {
"const-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
2016-11-01 03:59:04 +03:00
1
2016-11-01 02:23:25 +03:00
],
"end": [
3,
22
]
}
},
2016-11-01 03:59:04 +03:00
"summary": "Deleted the 'variable' variable"
2016-11-01 02:23:25 +03:00
},
{
"span": {
"delete": {
"start": [
4,
2016-11-01 03:59:04 +03:00
1
2016-11-01 02:23:25 +03:00
],
"end": [
4,
15
]
}
},
2016-11-01 03:59:04 +03:00
"summary": "Deleted the 'variable' variable"
2016-11-01 02:23:25 +03:00
},
{
"span": {
"insert": {
"start": [
4,
2016-11-01 03:59:04 +03:00
1
2016-11-01 02:23:25 +03:00
],
"end": [
4,
22
]
}
},
2016-11-01 03:59:04 +03:00
"summary": "Added the 'variable' variable"
2016-11-01 02:23:25 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations.go"
],
2016-11-01 23:24:34 +03:00
"sha1": "8cbf752f440f76d155f7051b8a64b0211edb8b4e",
2016-11-01 02:23:25 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-01 23:24:34 +03:00
"sha2": "cf95e8ef84936ada391abb0947309586e141572d"
2016-11-01 02:23:25 +03:00
}
,{
"testCaseDescription": "go-const-declarations-delete-test",
2016-11-01 02:23:25 +03:00
"expectedResult": {
"changes": {
"const-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
2016-11-01 03:59:04 +03:00
1
2016-11-01 02:23:25 +03:00
],
"end": [
3,
15
]
}
},
2016-11-01 03:59:04 +03:00
"summary": "Deleted the 'variable' variable"
2016-11-01 02:23:25 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations.go"
],
2016-11-01 23:24:34 +03:00
"sha1": "cf95e8ef84936ada391abb0947309586e141572d",
2016-11-01 02:23:25 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-01 23:24:34 +03:00
"sha2": "26b1f9be1d89e86e8fa32f04e1c29d16b1acd4cc"
2016-11-01 02:23:25 +03:00
}
,{
"testCaseDescription": "go-const-declarations-delete-rest-test",
2016-11-01 02:23:25 +03:00
"expectedResult": {
"changes": {
"const-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
2016-11-01 03:59:04 +03:00
1
2016-11-01 02:23:25 +03:00
],
"end": [
3,
22
]
}
},
2016-11-01 03:59:04 +03:00
"summary": "Deleted the 'variable' variable"
2016-11-01 02:23:25 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"const-declarations.go"
],
2016-11-01 23:24:34 +03:00
"sha1": "26b1f9be1d89e86e8fa32f04e1c29d16b1acd4cc",
2016-11-01 02:23:25 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-01 23:24:34 +03:00
"sha2": "ba3e9a68f92f17e4e3ff26bf0b06d68884e70b60"
2016-11-01 02:23:25 +03:00
}]