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/rune-literals.json
2016-11-02 16:29:27 -04:00

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": "139270e21dae64eb15f904a0511983fc0bb32d7d",
"gitDir": "test/corpus/repos/go",
"sha2": "1502ea785d64ca16ba397ddf3cd25f8ca8ba87fb"
}
,{
"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": "1502ea785d64ca16ba397ddf3cd25f8ca8ba87fb",
"gitDir": "test/corpus/repos/go",
"sha2": "f1838276da5ef1ffcb9890b634550d804a57e064"
}
,{
"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": "f1838276da5ef1ffcb9890b634550d804a57e064",
"gitDir": "test/corpus/repos/go",
"sha2": "a386d2d6b9c14540a924d32c54cd87de9324a704"
}
,{
"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": "a386d2d6b9c14540a924d32c54cd87de9324a704",
"gitDir": "test/corpus/repos/go",
"sha2": "506215b1aaaf36b1ddb7e286e9a533a15cc83e15"
}
,{
"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": "506215b1aaaf36b1ddb7e286e9a533a15cc83e15",
"gitDir": "test/corpus/repos/go",
"sha2": "89e21afb21db9a2b6a0d56726b611600ed512c46"
}
,{
"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": "89e21afb21db9a2b6a0d56726b611600ed512c46",
"gitDir": "test/corpus/repos/go",
"sha2": "ffc564578c69f6896003ad00e1b784f743bd18ba"
}
,{
"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": "ffc564578c69f6896003ad00e1b784f743bd18ba",
"gitDir": "test/corpus/repos/go",
"sha2": "4288c4a3cf198443314023087ec3ff93b38c1a7a"
}]