2016-11-02 18:07:06 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "go-rune-literals-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rune-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 18:07:06 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 18:07:06 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Added the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''0'' rune_literal"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
3,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-11 00:19:53 +03:00
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\''' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\'' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
5,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
5,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
2016-11-02 22:25:50 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
5,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\n'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
7,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
7,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\u0000'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\U01234567'' rune_literal"
|
2016-11-02 18:07:06 +03:00
|
|
|
}
|
|
|
|
]
|
2016-11-11 00:19:53 +03:00
|
|
|
},
|
|
|
|
"errors": {}
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rune-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/rune-literals.go b/rune-literals.go",
|
|
|
|
"index e69de29..23506f8 100644",
|
|
|
|
"--- a/rune-literals.go",
|
|
|
|
"+++ b/rune-literals.go",
|
|
|
|
"@@ -0,0 +1,9 @@",
|
|
|
|
"+const (",
|
|
|
|
"+a = '0'",
|
|
|
|
"+b = '\\''",
|
|
|
|
"+c = '\\'",
|
|
|
|
"+c = '",
|
|
|
|
"+'",
|
|
|
|
"+c = '\\u0000'",
|
|
|
|
"+c = '\\U01234567'",
|
|
|
|
"+)"
|
|
|
|
],
|
2016-11-02 18:07:06 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-15 03:12:17 +03:00
|
|
|
"shas": "2c09d54b94582d170b2a4d5075014c08af2f648b..ade57a2934124b1d3848926ef40f2635602c88f2"
|
2016-11-02 18:07:06 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-rune-literals-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rune-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 18:07:06 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
9,
|
2016-11-02 18:07:06 +03:00
|
|
|
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": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
9,
|
2016-11-02 22:25:50 +03:00
|
|
|
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": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
9,
|
2016-11-02 22:25:50 +03:00
|
|
|
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-11 00:19:53 +03:00
|
|
|
10,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
18,
|
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": [
|
2016-11-11 00:19:53 +03:00
|
|
|
10,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
18,
|
2016-11-02 22:25:50 +03:00
|
|
|
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": [
|
2016-11-11 00:19:53 +03:00
|
|
|
10,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
18,
|
2016-11-02 22:25:50 +03:00
|
|
|
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-11 00:19:53 +03:00
|
|
|
10,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
18,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:14:44 +03:00
|
|
|
"summary": "Added the 'c' variable"
|
2016-11-11 00:19:53 +03:00
|
|
|
},
|
2016-11-02 18:07:06 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
19,
|
2016-11-02 18:07:06 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
27,
|
2016-11-02 18:07:06 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Added the 'a' variable"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
19,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
27,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Added the 'b' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
27,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
27,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''0'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'b' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\''' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\'' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\n'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\u0000'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\U01234567'' rune_literal"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"rune-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' at line 1, column 1 - line 9, column 2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 10, column 1 - line 18, column 2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
27,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 19, column 1 - line 27, column 2"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rune-literals.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/rune-literals.go b/rune-literals.go",
|
|
|
|
"index 23506f8..b369e37 100644",
|
|
|
|
"--- a/rune-literals.go",
|
|
|
|
"+++ b/rune-literals.go",
|
|
|
|
"@@ -1,4 +1,22 @@",
|
|
|
|
" const (",
|
|
|
|
"+a = '1'",
|
|
|
|
"+b = '",
|
|
|
|
"+''",
|
|
|
|
"+c = '\\u0011'",
|
|
|
|
"+c = '\\'",
|
|
|
|
"+c = '\\u0022'",
|
|
|
|
"+c = '\\U01234568'",
|
|
|
|
"+)",
|
|
|
|
"+const (",
|
|
|
|
"+a = '0'",
|
|
|
|
"+b = '\\''",
|
|
|
|
"+c = '\\'",
|
|
|
|
"+c = '",
|
|
|
|
"+'",
|
|
|
|
"+c = '\\u0000'",
|
|
|
|
"+c = '\\U01234567'",
|
|
|
|
"+)",
|
|
|
|
"+const (",
|
|
|
|
" a = '0'",
|
|
|
|
" b = '\\''",
|
|
|
|
" c = '\\'"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-15 03:12:17 +03:00
|
|
|
"shas": "ade57a2934124b1d3848926ef40f2635602c88f2..a18bac9ed2c7d23a5d6d02792c9e3bb846a95eab"
|
2016-11-11 00:19:53 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-rune-literals-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rune-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''0'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'b' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\''' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\'' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\n'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\u0000'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\U01234567'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
9,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
10,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ')\nconst (' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
11,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
11,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''0'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'b' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\''' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
13,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
13,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
13,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
13,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\'' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
15,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\n'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
16,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
16,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
16,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
16,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\u0000'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\U01234567'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
19,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ')\nconst (' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
20,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
20,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
20,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
20,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''0'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
21,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
21,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'b' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
21,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
21,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\''' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
22,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
22,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
22,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
22,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\'' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
23,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
23,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
23,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
24,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\n'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
25,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
25,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
25,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
25,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\u0000'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
26,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
26,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
26,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
26,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\U01234567'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'b' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
27,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
27,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'b' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
27,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
27,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' variable"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"rune-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' at line 1, column 1 - line 9, column 2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 10, column 1 - line 18, column 2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
27,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 19, column 1 - line 27, column 2"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rune-literals.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/rune-literals.go b/rune-literals.go",
|
|
|
|
"index b369e37..aabbad7 100644",
|
|
|
|
"--- a/rune-literals.go",
|
|
|
|
"+++ b/rune-literals.go",
|
|
|
|
"@@ -1,11 +1,11 @@",
|
|
|
|
" const (",
|
|
|
|
"-a = '1'",
|
|
|
|
"-b = '",
|
|
|
|
"-''",
|
|
|
|
"-c = '\\u0011'",
|
|
|
|
"+a = '0'",
|
|
|
|
"+b = '\\''",
|
|
|
|
" c = '\\'",
|
|
|
|
"-c = '\\u0022'",
|
|
|
|
"-c = '\\U01234568'",
|
|
|
|
"+c = '",
|
|
|
|
"+'",
|
|
|
|
"+c = '\\u0000'",
|
|
|
|
"+c = '\\U01234567'",
|
|
|
|
" )",
|
|
|
|
" const (",
|
|
|
|
" a = '0'"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-15 03:12:17 +03:00
|
|
|
"shas": "a18bac9ed2c7d23a5d6d02792c9e3bb846a95eab..0e5e2884acc70a038e021d3feaaa1c62f736ccd5"
|
2016-11-11 00:19:53 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-rune-literals-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rune-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'b' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
27,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
27,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'b' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
27,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
27,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''0'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'b' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\''' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\'' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\n'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\u0000'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\U01234567'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
9,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
10,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ')\nconst (' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
11,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
11,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''0'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'b' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\''' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
13,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
13,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
13,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
13,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\'' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
15,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\n'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
16,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
16,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
16,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
16,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\u0000'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\U01234567'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
19,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ')\nconst (' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
20,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
20,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
20,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
20,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''0'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
21,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
21,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'b' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
21,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
21,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\''' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
22,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
22,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
22,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
22,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\'' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
23,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
23,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
23,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
24,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\n'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
25,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
25,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
25,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
25,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\u0000'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
26,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
26,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
26,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
26,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\U01234567'' rune_literal"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"rune-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' at line 1, column 1 - line 9, column 2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 10, column 1 - line 18, column 2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
27,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 19, column 1 - line 27, column 2"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rune-literals.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/rune-literals.go b/rune-literals.go",
|
|
|
|
"index aabbad7..b369e37 100644",
|
|
|
|
"--- a/rune-literals.go",
|
|
|
|
"+++ b/rune-literals.go",
|
|
|
|
"@@ -1,11 +1,11 @@",
|
|
|
|
" const (",
|
|
|
|
"-a = '0'",
|
|
|
|
"-b = '\\''",
|
|
|
|
"+a = '1'",
|
|
|
|
"+b = '",
|
|
|
|
"+''",
|
|
|
|
"+c = '\\u0011'",
|
|
|
|
" c = '\\'",
|
|
|
|
"-c = '",
|
|
|
|
"-'",
|
|
|
|
"-c = '\\u0000'",
|
|
|
|
"-c = '\\U01234567'",
|
|
|
|
"+c = '\\u0022'",
|
|
|
|
"+c = '\\U01234568'",
|
|
|
|
" )",
|
|
|
|
" const (",
|
|
|
|
" a = '0'"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-15 03:12:17 +03:00
|
|
|
"shas": "0e5e2884acc70a038e021d3feaaa1c62f736ccd5..121a6ea6f3ce95f762755e76902f23dc7453d4e2"
|
2016-11-11 00:19:53 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-rune-literals-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rune-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''0'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'b' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\''' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\'' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\n'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\u0000'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\U01234567'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
9,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
10,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ')\nconst (' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
11,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
11,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''1'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'b' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
13,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\n'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
13,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\n' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\u0011'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
15,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
15,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
15,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
15,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\'' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
16,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
16,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
16,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
16,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\u0022'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ''\\U01234568'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'b' variable"
|
|
|
|
},
|
2016-11-02 18:07:06 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'c' variable"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
2016-11-02 18:07:06 +03:00
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
10,
|
2016-11-02 18:07:06 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
18,
|
2016-11-02 18:07:06 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'c' variable"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
2016-11-02 18:07:06 +03:00
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
19,
|
2016-11-02 18:07:06 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
27,
|
2016-11-02 18:07:06 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'a' variable"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
2016-11-02 18:07:06 +03:00
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
19,
|
2016-11-02 18:07:06 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
27,
|
2016-11-02 18:07:06 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'b' 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": [
|
2016-11-11 00:19:53 +03:00
|
|
|
19,
|
2016-11-02 18:07:06 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
27,
|
2016-11-02 18:07:06 +03:00
|
|
|
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": [
|
2016-11-11 00:19:53 +03:00
|
|
|
19,
|
2016-11-02 18:07:06 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
27,
|
2016-11-02 18:07:06 +03:00
|
|
|
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-11 00:19:53 +03:00
|
|
|
"delete": {
|
2016-11-02 18:07:06 +03:00
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 18:07:06 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
9,
|
2016-11-02 18:07:06 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' at line 1, column 1 - line 9, 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": [
|
2016-11-11 00:19:53 +03:00
|
|
|
10,
|
2016-11-02 18:07:06 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
18,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 10, column 1 - line 18, column 2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
27,
|
2016-11-02 18:07:06 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'const (\na = '0'\nb = '\\''\nc = '\\'\nc = '\n'\nc = '\\u0000'\nc = '\\U01234567'\n)' at line 19, column 1 - line 27, 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-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/rune-literals.go b/rune-literals.go",
|
|
|
|
"index b369e37..34c7a16 100644",
|
|
|
|
"--- a/rune-literals.go",
|
|
|
|
"+++ b/rune-literals.go",
|
|
|
|
"@@ -1,13 +1,4 @@",
|
|
|
|
" const (",
|
|
|
|
"-a = '1'",
|
|
|
|
"-b = '",
|
|
|
|
"-''",
|
|
|
|
"-c = '\\u0011'",
|
|
|
|
"-c = '\\'",
|
|
|
|
"-c = '\\u0022'",
|
|
|
|
"-c = '\\U01234568'",
|
|
|
|
"-)",
|
|
|
|
"-const (",
|
|
|
|
" a = '0'",
|
|
|
|
" b = '\\''",
|
|
|
|
" c = '\\'",
|
|
|
|
"@@ -17,11 +8,11 @@ c = '\\u0000'",
|
|
|
|
" c = '\\U01234567'",
|
|
|
|
" )",
|
|
|
|
" const (",
|
|
|
|
"-a = '0'",
|
|
|
|
"-b = '\\''",
|
|
|
|
"+a = '1'",
|
|
|
|
"+b = '",
|
|
|
|
"+''",
|
|
|
|
"+c = '\\u0011'",
|
|
|
|
" c = '\\'",
|
|
|
|
"-c = '",
|
|
|
|
"-'",
|
|
|
|
"-c = '\\u0000'",
|
|
|
|
"-c = '\\U01234567'",
|
|
|
|
"+c = '\\u0022'",
|
|
|
|
"+c = '\\U01234568'",
|
|
|
|
" )"
|
|
|
|
],
|
2016-11-02 22:43:26 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-15 03:12:17 +03:00
|
|
|
"shas": "121a6ea6f3ce95f762755e76902f23dc7453d4e2..2fe8bcdb8fa36080ab366ab7c15f43e7bd8820cd"
|
2016-11-02 22:43:26 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-11 00:19:53 +03:00
|
|
|
"testCaseDescription": "go-rune-literals-delete-test",
|
2016-11-02 22:43:26 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rune-literals.go": [
|
2016-11-02 18:07:06 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Added the 'a' variable"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 18:07:06 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
9,
|
2016-11-02 18:07:06 +03:00
|
|
|
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": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 22:43:26 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
9,
|
2016-11-02 22:43:26 +03:00
|
|
|
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": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 18:07:06 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 18:07:06 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'a' identifier"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
|
|
|
5
|
2016-11-02 18:07:06 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
|
|
|
8
|
2016-11-02 18:07:06 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the ''0'' rune_literal"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
3,
|
2016-11-02 18:07:06 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'b' identifier"
|
|
|
|
},
|
2016-11-02 18:07:06 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
2016-11-02 18:07:06 +03:00
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-11 00:19:53 +03:00
|
|
|
5
|
2016-11-02 18:07:06 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
3,
|
|
|
|
9
|
2016-11-02 18:07:06 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the ''\\''' rune_literal"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
2016-11-02 22:25:50 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
|
|
|
5
|
2016-11-02 22:25:50 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
|
|
|
8
|
2016-11-02 22:25:50 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the ''\\'' ERROR"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
5,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
5,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
5,
|
|
|
|
5
|
2016-11-02 22:25:50 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
6,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the ''\n'' rune_literal"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
7,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
7,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
7,
|
|
|
|
5
|
2016-11-02 22:25:50 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
7,
|
|
|
|
13
|
2016-11-02 22:25:50 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the ''\\u0000'' rune_literal"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
8,
|
2016-11-02 18:07:06 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
8,
|
2016-11-02 18:07:06 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
8,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\U01234567'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
9,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
10,
|
|
|
|
8
|
2016-11-02 22:25:50 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the ')\nconst (' ERROR"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
2016-11-02 22:25:50 +03:00
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
11,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
11,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'a' identifier"
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
11,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
8
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''1'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
2016-11-02 18:07:06 +03:00
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
12,
|
2016-11-02 18:07:06 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'b' identifier"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
2016-11-02 22:25:50 +03:00
|
|
|
"start": [
|
|
|
|
12,
|
2016-11-11 00:19:53 +03:00
|
|
|
5
|
2016-11-02 22:25:50 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
13,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the ''\n'' rune_literal"
|
|
|
|
},
|
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-11 00:19:53 +03:00
|
|
|
13,
|
|
|
|
2
|
2016-11-02 22:25:50 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
14,
|
|
|
|
1
|
2016-11-02 22:25:50 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the ''\n' ERROR"
|
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-11 00:19:53 +03:00
|
|
|
14,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
14,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
2016-11-02 22:25:50 +03:00
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
14,
|
|
|
|
5
|
2016-11-02 22:25:50 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
14,
|
|
|
|
13
|
2016-11-02 22:25:50 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the ''\\u0011'' rune_literal"
|
|
|
|
},
|
2016-11-02 18:07:06 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
15,
|
2016-11-02 18:07:06 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
15,
|
2016-11-02 18:07:06 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
15,
|
|
|
|
5
|
2016-11-02 22:25:50 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
15,
|
|
|
|
8
|
2016-11-02 22:25:50 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the ''\\'' ERROR"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
16,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
16,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 22:25:50 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
16,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
16,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\u0022'' rune_literal"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
17,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
17,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ''\\U01234568'' rune_literal"
|
2016-11-02 23:14:44 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"rune-literals.go": [
|
2016-11-02 22:25:50 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"insert": {
|
2016-11-02 22:25:50 +03:00
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
9,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Added the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' at line 1, column 1 - line 9, 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-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/rune-literals.go b/rune-literals.go",
|
|
|
|
"index 34c7a16..dc07d00 100644",
|
|
|
|
"--- a/rune-literals.go",
|
|
|
|
"+++ b/rune-literals.go",
|
|
|
|
"@@ -1,13 +1,4 @@",
|
|
|
|
" const (",
|
|
|
|
"-a = '0'",
|
|
|
|
"-b = '\\''",
|
|
|
|
"-c = '\\'",
|
|
|
|
"-c = '",
|
|
|
|
"-'",
|
|
|
|
"-c = '\\u0000'",
|
|
|
|
"-c = '\\U01234567'",
|
|
|
|
"-)",
|
|
|
|
"-const (",
|
|
|
|
" a = '1'",
|
|
|
|
" b = '",
|
|
|
|
" ''"
|
|
|
|
],
|
2016-11-02 18:07:06 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-15 03:12:17 +03:00
|
|
|
"shas": "2fe8bcdb8fa36080ab366ab7c15f43e7bd8820cd..e1a4cdaac5e35bada62fb74e93f2463543d05ce9"
|
2016-11-02 18:07:06 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-rune-literals-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rune-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 18:07:06 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
9,
|
2016-11-02 18:07:06 +03:00
|
|
|
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": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
9,
|
2016-11-02 22:25:50 +03:00
|
|
|
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": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
9,
|
2016-11-02 22:25:50 +03:00
|
|
|
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": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
9,
|
2016-11-02 22:25:50 +03:00
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-11 00:19:53 +03:00
|
|
|
"summary": "Deleted the 'const (\na = '1'\nb = '\n''\nc = '\\u0011'\nc = '\\'\nc = '\\u0022'\nc = '\\U01234568'\n)' at line 1, column 1 - line 9, 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-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/rune-literals.go b/rune-literals.go",
|
|
|
|
"index dc07d00..e69de29 100644",
|
|
|
|
"--- a/rune-literals.go",
|
|
|
|
"+++ b/rune-literals.go",
|
|
|
|
"@@ -1,9 +0,0 @@",
|
|
|
|
"-const (",
|
|
|
|
"-a = '1'",
|
|
|
|
"-b = '",
|
|
|
|
"-''",
|
|
|
|
"-c = '\\u0011'",
|
|
|
|
"-c = '\\'",
|
|
|
|
"-c = '\\u0022'",
|
|
|
|
"-c = '\\U01234568'",
|
|
|
|
"-)"
|
|
|
|
],
|
2016-11-02 18:07:06 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-15 03:12:17 +03:00
|
|
|
"shas": "e1a4cdaac5e35bada62fb74e93f2463543d05ce9..73fbfe72ff0e945837a0165af96346bd4deeebaa"
|
2016-11-02 18:07:06 +03:00
|
|
|
}]
|