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

635 lines
20 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 'one' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Added the 'two' variable"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "e85b4fc7a33c3f1250ee12a0fc5233478889d555",
"gitDir": "test/corpus/repos/go",
"sha2": "0ce209612b8ab8bb18b117a62e22fbb13e6f77d6"
}
,{
"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 'b' variable"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Added the 'c' 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 'one' variable"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Added the 'two' variable"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "0ce209612b8ab8bb18b117a62e22fbb13e6f77d6",
"gitDir": "test/corpus/repos/go",
"sha2": "c12f75aa1c9ae05857329abc290cd96b7206124d"
}
,{
"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"
},
{
"span": {
"replace": [
{
"start": [
6,
2
],
"end": [
6,
3
]
},
{
"start": [
6,
2
],
"end": [
6,
5
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'two' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "c12f75aa1c9ae05857329abc290cd96b7206124d",
"gitDir": "test/corpus/repos/go",
"sha2": "f0f3275498d1d6c627e362addd2083b2b063f3e9"
}
,{
"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"
},
{
"span": {
"replace": [
{
"start": [
6,
2
],
"end": [
6,
5
]
},
{
"start": [
6,
2
],
"end": [
6,
3
]
}
]
},
"summary": "Replaced the 'two' identifier with the 'c' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "f0f3275498d1d6c627e362addd2083b2b063f3e9",
"gitDir": "test/corpus/repos/go",
"sha2": "98cf0d1cc464abc04183902c1a2e89aa86d7c0bf"
}
,{
"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 'b' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'c' 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 'one' variable"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Deleted the 'two' 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 'b' variable"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
3
]
}
},
"summary": "Added the 'c' variable"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "98cf0d1cc464abc04183902c1a2e89aa86d7c0bf",
"gitDir": "test/corpus/repos/go",
"sha2": "91d5a199841110217a44e1badb0376f869d04eef"
}
,{
"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 'one' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'two' variable"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "91d5a199841110217a44e1badb0376f869d04eef",
"gitDir": "test/corpus/repos/go",
"sha2": "ad07a6e11cf849d996d8aa64e6ebcfbb0ac5e67b"
}
,{
"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 'b' variable"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
3
]
}
},
"summary": "Deleted the 'c' variable"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "ad07a6e11cf849d996d8aa64e6ebcfbb0ac5e67b",
"gitDir": "test/corpus/repos/go",
"sha2": "dfbc8ff49fd986cdd3860a26c8827b04ceae7cbc"
}]