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/const-with-implicit-values.json
2016-11-02 15:43:26 -04:00

635 lines
21 KiB
JSON

[{
"testCaseDescription": "go-const-with-implicit-values-insert-test",
"expectedResult": {
"changes": {
"const-with-implicit-values.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Added the 'zero' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Added the 'const (\n zero = iota\n one\n two\n )' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Added the 'const (\n zero = iota\n one\n two\n )' variable"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "cf110c7b445b1bf24faa920c275ae73f07804dee",
"gitDir": "test/corpus/repos/go",
"sha2": "26c9f7ef635e5a8736227d65f2782f84da8659c5"
}
,{
"testCaseDescription": "go-const-with-implicit-values-replacement-insert-test",
"expectedResult": {
"changes": {
"const-with-implicit-values.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Added the 'a' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Added the 'const (\n a = iota\n b\n c\n )' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Added the 'const (\n a = iota\n b\n c\n )' variable"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Added the 'zero' variable"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Added the 'const (\n zero = iota\n one\n two\n )' variable"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Added the 'const (\n zero = iota\n one\n two\n )' variable"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "26c9f7ef635e5a8736227d65f2782f84da8659c5",
"gitDir": "test/corpus/repos/go",
"sha2": "78bf537c3122a3d54783ff371dd363c7075520d3"
}
,{
"testCaseDescription": "go-const-with-implicit-values-delete-insert-test",
"expectedResult": {
"changes": {
"const-with-implicit-values.go": [
{
"span": {
"replace": [
{
"start": [
4,
2
],
"end": [
4,
3
]
},
{
"start": [
4,
2
],
"end": [
4,
6
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'zero' identifier in the zero variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
5,
2
],
"end": [
5,
3
]
},
{
"start": [
5,
2
],
"end": [
5,
5
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'one' identifier in the const (\n zero = iota\n one\n two\n ) variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
6,
2
],
"end": [
6,
3
]
},
{
"start": [
6,
2
],
"end": [
6,
5
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'two' identifier in the const (\n zero = iota\n one\n two\n ) variable of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "78bf537c3122a3d54783ff371dd363c7075520d3",
"gitDir": "test/corpus/repos/go",
"sha2": "4542cc4469b8a535b74db8ecf067fddf3a0eb364"
}
,{
"testCaseDescription": "go-const-with-implicit-values-replacement-test",
"expectedResult": {
"changes": {
"const-with-implicit-values.go": [
{
"span": {
"replace": [
{
"start": [
4,
2
],
"end": [
4,
6
]
},
{
"start": [
4,
2
],
"end": [
4,
3
]
}
]
},
"summary": "Replaced the 'zero' identifier with the 'a' identifier in the a variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
5,
2
],
"end": [
5,
5
]
},
{
"start": [
5,
2
],
"end": [
5,
3
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'b' identifier in the const (\n a = iota\n b\n c\n ) variable of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
6,
2
],
"end": [
6,
5
]
},
{
"start": [
6,
2
],
"end": [
6,
3
]
}
]
},
"summary": "Replaced the 'two' identifier with the 'c' identifier in the const (\n a = iota\n b\n c\n ) variable of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "4542cc4469b8a535b74db8ecf067fddf3a0eb364",
"gitDir": "test/corpus/repos/go",
"sha2": "0aefb1def5ef4c19789f5f7396dabeebd30b5f2d"
}
,{
"testCaseDescription": "go-const-with-implicit-values-delete-replacement-test",
"expectedResult": {
"changes": {
"const-with-implicit-values.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'a' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'const (\n a = iota\n b\n c\n )' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'const (\n a = iota\n b\n c\n )' variable"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Deleted the 'zero' variable"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Deleted the 'const (\n zero = iota\n one\n two\n )' variable"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Deleted the 'const (\n zero = iota\n one\n two\n )' variable"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Added the 'a' variable"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Added the 'const (\n a = iota\n b\n c\n )' variable"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Added the 'const (\n a = iota\n b\n c\n )' variable"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "0aefb1def5ef4c19789f5f7396dabeebd30b5f2d",
"gitDir": "test/corpus/repos/go",
"sha2": "cdf5151d5ea4c0af4fda4d5b3346b1854dda26a1"
}
,{
"testCaseDescription": "go-const-with-implicit-values-delete-test",
"expectedResult": {
"changes": {
"const-with-implicit-values.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'zero' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'const (\n zero = iota\n one\n two\n )' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'const (\n zero = iota\n one\n two\n )' variable"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "cdf5151d5ea4c0af4fda4d5b3346b1854dda26a1",
"gitDir": "test/corpus/repos/go",
"sha2": "f851771235eff96fab77f50f8b8e28dfe90c8af0"
}
,{
"testCaseDescription": "go-const-with-implicit-values-delete-rest-test",
"expectedResult": {
"changes": {
"const-with-implicit-values.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'a' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'const (\n a = iota\n b\n c\n )' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'const (\n a = iota\n b\n c\n )' variable"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "f851771235eff96fab77f50f8b8e28dfe90c8af0",
"gitDir": "test/corpus/repos/go",
"sha2": "f10c60d2ed450d603e9381b9365970fb51ab826d"
}]