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

938 lines
30 KiB
JSON
Raw Normal View History

2016-11-02 18:07:06 +03:00
[{
"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"
2016-11-02 18:07:06 +03:00
}
]
}
2016-11-02 18:07:06 +03:00
},
"filePaths": [
"rune-literals.go"
],
2016-11-02 23:35:38 +03:00
"sha1": "676bd4a3101c20ceaca022d723dbadd16e817d93",
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:35:38 +03:00
"sha2": "d697811c33a7748f899a077acbc203d47c1bcda8"
2016-11-02 18:07:06 +03:00
}
,{
"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": [
2016-11-02 18:07:06 +03:00
{
"span": {
"insert": {
"start": [
3,
2016-11-02 18:07:06 +03:00
1
],
"end": [
11,
2016-11-02 18:07:06 +03:00
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"
2016-11-02 18:07:06 +03:00
}
]
}
2016-11-02 18:07:06 +03:00
},
"filePaths": [
"rune-literals.go"
],
2016-11-02 23:35:38 +03:00
"sha1": "d697811c33a7748f899a077acbc203d47c1bcda8",
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:35:38 +03:00
"sha2": "ab74a3f2c15a876df9e2e45b4f34dc956c1a0b11"
2016-11-02 18:07:06 +03:00
}
,{
"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"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'b' variable"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"insert": {
2016-11-02 18:07:06 +03:00
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'c' variable"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"insert": {
2016-11-02 18:07:06 +03:00
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'c' variable"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"delete": {
2016-11-02 18:07:06 +03:00
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'c' variable"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'c' variable"
}
]
},
"errors": {
"rune-literals.go": [
2016-11-02 18:07:06 +03:00
{
"span": {
"insert": {
2016-11-02 18:07:06 +03:00
"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"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"delete": {
2016-11-02 18:07:06 +03:00
"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"
],
2016-11-02 23:35:38 +03:00
"sha1": "ab74a3f2c15a876df9e2e45b4f34dc956c1a0b11",
"gitDir": "test/corpus/repos/go",
2016-11-02 23:35:38 +03:00
"sha2": "ae83e9e1bc1f116a460005b2432fc724af43ed9a"
}
,{
"testCaseDescription": "go-rune-literals-replacement-test",
"expectedResult": {
"changes": {
"rune-literals.go": [
2016-11-02 18:07:06 +03:00
{
"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"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Added the 'c' variable"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
11,
2
]
}
2016-11-02 18:07:06 +03:00
},
"summary": "Added the 'c' variable"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"delete": {
2016-11-02 18:07:06 +03:00
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'b' variable"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'c' variable"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
11,
2
]
}
},
"summary": "Deleted the 'c' variable"
}
]
},
"errors": {
"rune-literals.go": [
2016-11-02 18:07:06 +03:00
{
"span": {
"insert": {
2016-11-02 18:07:06 +03:00
"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"
],
2016-11-02 23:35:38 +03:00
"sha1": "ae83e9e1bc1f116a460005b2432fc724af43ed9a",
"gitDir": "test/corpus/repos/go",
2016-11-02 23:35:38 +03:00
"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"
2016-11-02 18:07:06 +03:00
},
{
"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"
2016-11-02 18:07:06 +03:00
},
{
"span": {
"insert": {
2016-11-02 18:07:06 +03:00
"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"
2016-11-02 18:07:06 +03:00
}
]
}
2016-11-02 18:07:06 +03:00
},
"filePaths": [
"rune-literals.go"
],
2016-11-02 23:35:38 +03:00
"sha1": "3c89aff413882b6be4f22426a0cd3c86e28b0f30",
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:35:38 +03:00
"sha2": "e7fa166d098210c9e9444fb9015175731e67233d"
2016-11-02 18:07:06 +03:00
}
,{
"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"
2016-11-02 18:07:06 +03:00
}
]
}
2016-11-02 18:07:06 +03:00
},
"filePaths": [
"rune-literals.go"
],
2016-11-02 23:35:38 +03:00
"sha1": "e7fa166d098210c9e9444fb9015175731e67233d",
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:35:38 +03:00
"sha2": "04ef11095fdf01644c59a3190be6548664fd05d8"
2016-11-02 18:07:06 +03:00
}
,{
"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"
2016-11-02 18:07:06 +03:00
}
]
}
2016-11-02 18:07:06 +03:00
},
"filePaths": [
"rune-literals.go"
],
2016-11-02 23:35:38 +03:00
"sha1": "04ef11095fdf01644c59a3190be6548664fd05d8",
2016-11-02 18:07:06 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:35:38 +03:00
"sha2": "5e5218456fceb63f439e79153361dee692ec1ec4"
2016-11-02 18:07:06 +03:00
}]