mirror of
https://github.com/github/semantic.git
synced 2024-12-24 15:35:14 +03:00
686 lines
24 KiB
JSON
686 lines
24 KiB
JSON
[{
|
|
"testCaseDescription": "go-rune-literals-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'variable' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"sha1": "f21837e2d040e66d0d8daa1c191e700d37a53d67",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "7497b78524f9f757775e4907bcff4a81a11bfeda"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-rune-literals-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'variable' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'variable' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"sha1": "7497b78524f9f757775e4907bcff4a81a11bfeda",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "8910a36858a157d0c8baf0f695e189492077eb80"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-rune-literals-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"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)' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
2
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
9,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
2
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'c' identifier in the const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n) variable of the 'main' module statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
9,
|
|
5
|
|
],
|
|
"end": [
|
|
9,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''1'' rune_literal with the ''\\u0000'' rune_literal in the const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n) variable of the 'main' module statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
9,
|
|
5
|
|
],
|
|
"end": [
|
|
9,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''1'' rune_literal with the ''\\u0000'' rune_literal in the const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n) variable of the 'main' module statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' 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 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"sha1": "8910a36858a157d0c8baf0f695e189492077eb80",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "2d9e34f2344b5d87362822795946bdd76cda64b3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-rune-literals-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"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)' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
2
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
6,
|
|
2
|
|
],
|
|
"end": [
|
|
7,
|
|
2
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the ''\nc' identifier in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
7,
|
|
5
|
|
],
|
|
"end": [
|
|
7,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''0'' rune_literal with the ''\\u0011'' rune_literal in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
7,
|
|
5
|
|
],
|
|
"end": [
|
|
7,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''0'' rune_literal with the ''\\u0011'' rune_literal in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
2
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
10,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
2
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'c' identifier in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
5,
|
|
5
|
|
],
|
|
"end": [
|
|
5,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
10,
|
|
5
|
|
],
|
|
"end": [
|
|
10,
|
|
17
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''\\''' rune_literal with the ''\\U01234568'' rune_literal in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
5,
|
|
5
|
|
],
|
|
"end": [
|
|
5,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
10,
|
|
5
|
|
],
|
|
"end": [
|
|
10,
|
|
17
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ''\\''' rune_literal with the ''\\U01234568'' rune_literal in the const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n) variable of the 'main' module statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"sha1": "2d9e34f2344b5d87362822795946bdd76cda64b3",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "ff71504ef5a0d07f2958c7b12426fe75b05c4c36"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-rune-literals-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'variable' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'variable' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
20,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'variable' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"sha1": "ff71504ef5a0d07f2958c7b12426fe75b05c4c36",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "3d22cee3cf50ee768d2e88c4ae62fc7181872fda"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-rune-literals-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'variable' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"sha1": "3d22cee3cf50ee768d2e88c4ae62fc7181872fda",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "e3135bad003500196db30163b6d1946179bf5428"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-rune-literals-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"rune-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'variable' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"rune-literals.go"
|
|
],
|
|
"sha1": "e3135bad003500196db30163b6d1946179bf5428",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "4d8db019f0affc179520ece1e0faabb84fdc1ac6"
|
|
}]
|