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": "a70b7582c8f3a84eac215e17fbe07868510577b3",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "cf6b204a6c6efc9314b6b2a035f42a6fa144b70c"
|
|
}
|
|
,{
|
|
"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": "cf6b204a6c6efc9314b6b2a035f42a6fa144b70c",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "55ba52157f6291f9e1ef5e52f35bafdc3d6a725c"
|
|
}
|
|
,{
|
|
"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": "55ba52157f6291f9e1ef5e52f35bafdc3d6a725c",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "2641262d253b06cce5bb3cadc74b7d2a6ce4eecb"
|
|
}
|
|
,{
|
|
"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": "2641262d253b06cce5bb3cadc74b7d2a6ce4eecb",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "b868792d212d4083350fd4d4afb2fc9a7bad2d80"
|
|
}
|
|
,{
|
|
"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": "b868792d212d4083350fd4d4afb2fc9a7bad2d80",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "23792f81b6b29fb055224aa60c02e96a1d3d6228"
|
|
}
|
|
,{
|
|
"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": "23792f81b6b29fb055224aa60c02e96a1d3d6228",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "0b1cadf8e014685e276cc779ebb0a894a9ac3fd1"
|
|
}
|
|
,{
|
|
"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": "0b1cadf8e014685e276cc779ebb0a894a9ac3fd1",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "6a5c5e925499fc0ac05bc20d3440592bebc89ea5"
|
|
}]
|