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
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Added the 'a' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Added the 'b' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Added the 'c' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Added the 'c' variable"
|
2016-11-02 23:14:44 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"rune-literals.go": [
|
2016-11-02 22:25:50 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"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 23:14:44 +03:00
|
|
|
}
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rune-literals.go"
|
|
|
|
],
|
2016-11-02 23:29:27 +03:00
|
|
|
"sha1": "139270e21dae64eb15f904a0511983fc0bb32d7d",
|
2016-11-02 18:07:06 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-02 23:29:27 +03:00
|
|
|
"sha2": "1502ea785d64ca16ba397ddf3cd25f8ca8ba87fb"
|
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
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Added the 'a' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Added the 'c' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Added the 'c' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 23:14:44 +03:00
|
|
|
12,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 23:14:44 +03:00
|
|
|
20,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Added the 'a' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
20,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Added the 'b' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
20,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Added the 'c' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
20,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Added the 'c' variable"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"rune-literals.go": [
|
2016-11-02 18:07:06 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 23:14:44 +03:00
|
|
|
3,
|
2016-11-02 18:07:06 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 23:14:44 +03:00
|
|
|
11,
|
2016-11-02 18:07:06 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"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"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
20,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"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 23:14:44 +03:00
|
|
|
}
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rune-literals.go"
|
|
|
|
],
|
2016-11-02 23:29:27 +03:00
|
|
|
"sha1": "1502ea785d64ca16ba397ddf3cd25f8ca8ba87fb",
|
2016-11-02 18:07:06 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-02 23:29:27 +03:00
|
|
|
"sha2": "f1838276da5ef1ffcb9890b634550d804a57e064"
|
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
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"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
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Added the 'b' variable"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 22:43:26 +03:00
|
|
|
"insert": {
|
2016-11-02 18:07:06 +03:00
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Added the 'c' variable"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 22:43:26 +03:00
|
|
|
"insert": {
|
2016-11-02 18:07:06 +03:00
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Added the 'c' variable"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 23:14:44 +03:00
|
|
|
"delete": {
|
2016-11-02 18:07:06 +03:00
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Deleted the 'c' variable"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Deleted the 'c' variable"
|
2016-11-02 23:14:44 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"rune-literals.go": [
|
2016-11-02 18:07:06 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 23:14:44 +03:00
|
|
|
"insert": {
|
2016-11-02 18:07:06 +03:00
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"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": {
|
2016-11-02 22:43:26 +03:00
|
|
|
"delete": {
|
2016-11-02 18:07:06 +03:00
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"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 22:43:26 +03:00
|
|
|
}
|
|
|
|
]
|
2016-11-02 23:14:44 +03:00
|
|
|
}
|
2016-11-02 22:43:26 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rune-literals.go"
|
|
|
|
],
|
2016-11-02 23:29:27 +03:00
|
|
|
"sha1": "f1838276da5ef1ffcb9890b634550d804a57e064",
|
2016-11-02 22:43:26 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-02 23:29:27 +03:00
|
|
|
"sha2": "a386d2d6b9c14540a924d32c54cd87de9324a704"
|
2016-11-02 22:43:26 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"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
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"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
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Added the 'c' variable"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 22:43:26 +03:00
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Added the 'c' variable"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 23:14:44 +03:00
|
|
|
"delete": {
|
2016-11-02 18:07:06 +03:00
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Deleted the 'b' variable"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Deleted the 'c' variable"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Deleted the 'c' variable"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"rune-literals.go": [
|
2016-11-02 18:07:06 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 23:14:44 +03:00
|
|
|
"insert": {
|
2016-11-02 18:07:06 +03:00
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"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"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"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 22:43:26 +03:00
|
|
|
}
|
|
|
|
]
|
2016-11-02 23:14:44 +03:00
|
|
|
}
|
2016-11-02 22:43:26 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rune-literals.go"
|
|
|
|
],
|
2016-11-02 23:29:27 +03:00
|
|
|
"sha1": "a386d2d6b9c14540a924d32c54cd87de9324a704",
|
2016-11-02 22:43:26 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-02 23:29:27 +03:00
|
|
|
"sha2": "506215b1aaaf36b1ddb7e286e9a533a15cc83e15"
|
2016-11-02 22:43:26 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-rune-literals-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rune-literals.go": [
|
2016-11-02 22:25:50 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Deleted the 'a' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Deleted the 'c' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Deleted the 'c' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 23:14:44 +03:00
|
|
|
12,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 23:14:44 +03:00
|
|
|
20,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Deleted the 'a' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
20,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Deleted the 'b' variable"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
20,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Deleted the 'c' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
20,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Deleted the 'c' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 23:14:44 +03:00
|
|
|
"insert": {
|
2016-11-02 22:25:50 +03:00
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
20,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Added the 'a' variable"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 23:14:44 +03:00
|
|
|
"insert": {
|
2016-11-02 18:07:06 +03:00
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
20,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Added the 'c' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
20,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Added the 'c' variable"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"rune-literals.go": [
|
2016-11-02 22:25:50 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 23:14:44 +03:00
|
|
|
"delete": {
|
2016-11-02 22:25:50 +03:00
|
|
|
"start": [
|
2016-11-02 23:14:44 +03:00
|
|
|
3,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 23:14:44 +03:00
|
|
|
11,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"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 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 23:14:44 +03:00
|
|
|
"delete": {
|
2016-11-02 22:25:50 +03:00
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
20,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Deleted 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 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
20,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"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 23:14:44 +03:00
|
|
|
}
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rune-literals.go"
|
|
|
|
],
|
2016-11-02 23:29:27 +03:00
|
|
|
"sha1": "506215b1aaaf36b1ddb7e286e9a533a15cc83e15",
|
2016-11-02 18:07:06 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-02 23:29:27 +03:00
|
|
|
"sha2": "89e21afb21db9a2b6a0d56726b611600ed512c46"
|
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
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Deleted the 'a' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Deleted the 'b' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Deleted the 'c' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Deleted the 'c' variable"
|
2016-11-02 23:14:44 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"rune-literals.go": [
|
2016-11-02 22:25:50 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"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 23:14:44 +03:00
|
|
|
}
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rune-literals.go"
|
|
|
|
],
|
2016-11-02 23:29:27 +03:00
|
|
|
"sha1": "89e21afb21db9a2b6a0d56726b611600ed512c46",
|
2016-11-02 18:07:06 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-02 23:29:27 +03:00
|
|
|
"sha2": "ffc564578c69f6896003ad00e1b784f743bd18ba"
|
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
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Deleted the 'a' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
"summary": "Deleted the 'c' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Deleted the 'c' variable"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"rune-literals.go": [
|
2016-11-02 22:25:50 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"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 23:14:44 +03:00
|
|
|
}
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rune-literals.go"
|
|
|
|
],
|
2016-11-02 23:29:27 +03:00
|
|
|
"sha1": "ffc564578c69f6896003ad00e1b784f743bd18ba",
|
2016-11-02 18:07:06 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-02 23:29:27 +03:00
|
|
|
"sha2": "4288c4a3cf198443314023087ec3ff93b38c1a7a"
|
2016-11-02 18:07:06 +03:00
|
|
|
}]
|