mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
938 lines
30 KiB
JSON
938 lines
30 KiB
JSON
[{
|
|
"testCaseDescription": "go-rune-literals-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 3, column 1 - line 11, column 2"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"sha1": "676bd4a3101c20ceaca022d723dbadd16e817d93",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "d697811c33a7748f899a077acbc203d47c1bcda8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-rune-literals-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' at line 3, column 1 - line 11, column 2"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 12, column 1 - line 20, column 2"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"sha1": "d697811c33a7748f899a077acbc203d47c1bcda8",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "ab74a3f2c15a876df9e2e45b4f34dc956c1a0b11"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-rune-literals-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''1'' rune_literal with the ''0'' rune_literal in the a variable of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 3, column 1 - line 11, column 2"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' at line 3, column 1 - line 11, column 2"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"sha1": "ab74a3f2c15a876df9e2e45b4f34dc956c1a0b11",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "ae83e9e1bc1f116a460005b2432fc724af43ed9a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-rune-literals-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''0'' rune_literal with the ''1'' rune_literal in the a variable of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' at line 3, column 1 - line 11, column 2"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 3, column 1 - line 11, column 2"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"sha1": "ae83e9e1bc1f116a460005b2432fc724af43ed9a",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "3c89aff413882b6be4f22426a0cd3c86e28b0f30"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-rune-literals-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' at line 3, column 1 - line 11, column 2"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 12, column 1 - line 20, column 2"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' at line 12, column 1 - line 20, column 2"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"sha1": "3c89aff413882b6be4f22426a0cd3c86e28b0f30",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "e7fa166d098210c9e9444fb9015175731e67233d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-rune-literals-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 3, column 1 - line 11, column 2"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"sha1": "e7fa166d098210c9e9444fb9015175731e67233d",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "04ef11095fdf01644c59a3190be6548664fd05d8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-rune-literals-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' at line 3, column 1 - line 11, column 2"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"sha1": "04ef11095fdf01644c59a3190be6548664fd05d8",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "5e5218456fceb63f439e79153361dee692ec1ec4"
|
|
}]
|