2016-11-02 18:07:06 +03:00
|
|
|
[{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-rune-literals-setup-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rune-literals.go": [
|
2016-11-02 22:25:50 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"insert": {
|
2016-11-02 22:25:50 +03:00
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
1,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2017-01-24 23:09:28 +03:00
|
|
|
1,
|
|
|
|
13
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'main' module"
|
2016-11-02 23:14:44 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rune-literals.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/rune-literals.go b/rune-literals.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index e69de29b..c9ecbf5e 100644",
|
2016-12-02 00:03:52 +03:00
|
|
|
"--- a/rune-literals.go",
|
|
|
|
"+++ b/rune-literals.go",
|
|
|
|
"@@ -0,0 +1,2 @@",
|
|
|
|
"+package main",
|
|
|
|
"+"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-26 04:43:15 +03:00
|
|
|
"shas": "663f0278d8c41aca54ae0d1849efc76213f9ba1f..1e54211c4612f5a3f6fddae7d3c3eae18327a9cd"
|
2016-12-02 00:03:52 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-rune-literals-insert-test",
|
|
|
|
"expectedResult": {
|
2016-12-07 23:41:28 +03:00
|
|
|
"changes": {
|
|
|
|
"rune-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2017-01-10 23:09:09 +03:00
|
|
|
3,
|
2017-01-18 02:55:59 +03:00
|
|
|
3
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2017-01-10 23:09:09 +03:00
|
|
|
3,
|
2017-01-18 02:55:59 +03:00
|
|
|
10
|
2016-12-07 23:41:28 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added the 'a' var assignment"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2017-01-10 23:09:09 +03:00
|
|
|
4,
|
2017-01-18 02:55:59 +03:00
|
|
|
3
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2017-01-10 23:09:09 +03:00
|
|
|
4,
|
2017-01-18 02:55:59 +03:00
|
|
|
10
|
2016-12-07 23:41:28 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added the 'b' var assignment"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2017-01-18 02:55:59 +03:00
|
|
|
5,
|
|
|
|
3
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2017-01-18 02:55:59 +03:00
|
|
|
5,
|
|
|
|
10
|
2016-12-07 23:41:28 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added the 'c' var assignment"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2017-01-18 02:55:59 +03:00
|
|
|
6,
|
|
|
|
3
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2017-01-18 02:55:59 +03:00
|
|
|
6,
|
|
|
|
10
|
2016-12-07 23:41:28 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added the 'd' var assignment"
|
2017-01-18 02:55:59 +03:00
|
|
|
},
|
2016-12-07 23:41:28 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2017-01-18 02:55:59 +03:00
|
|
|
7,
|
|
|
|
3
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2017-01-17 23:26:07 +03:00
|
|
|
7,
|
2017-01-18 02:55:59 +03:00
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added the 'e' var assignment"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"rune-literals.go": [
|
2017-01-18 02:55:59 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
3
|
|
|
|
],
|
2017-01-18 21:01:25 +03:00
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added 'f = '⌘jjjj'\n' at line 8, column 3 - line 9, column 1"
|
2016-12-07 23:41:28 +03:00
|
|
|
}
|
|
|
|
]
|
2017-01-24 23:09:28 +03:00
|
|
|
}
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rune-literals.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/rune-literals.go b/rune-literals.go",
|
2017-01-18 21:01:25 +03:00
|
|
|
"index c9ecbf5e..7d2b6610 100644",
|
2016-12-07 23:41:28 +03:00
|
|
|
"--- a/rune-literals.go",
|
|
|
|
"+++ b/rune-literals.go",
|
2017-01-18 02:55:59 +03:00
|
|
|
"@@ -1,2 +1,9 @@",
|
2016-12-07 23:41:28 +03:00
|
|
|
" package main",
|
|
|
|
"-",
|
|
|
|
"+const (",
|
2017-01-18 02:55:59 +03:00
|
|
|
"+ a = 'δ'",
|
|
|
|
"+ b = '⌘'",
|
|
|
|
"+ c = '⌘'",
|
|
|
|
"+ d = '⌘'",
|
|
|
|
"+ e = '⌘'",
|
2017-01-18 21:01:25 +03:00
|
|
|
"+ f = '⌘jjjj'",
|
2016-12-07 23:41:28 +03:00
|
|
|
"+)"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-26 04:43:15 +03:00
|
|
|
"shas": "1e54211c4612f5a3f6fddae7d3c3eae18327a9cd..7946dc95b2a2eaa4a44da409ed54a82a54ed188a"
|
2016-12-07 23:41:28 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-rune-literals-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rune-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
3,
|
2017-01-18 02:55:59 +03:00
|
|
|
7
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2017-01-18 02:55:59 +03:00
|
|
|
10
|
2016-12-07 23:41:28 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
3,
|
2017-01-18 02:55:59 +03:00
|
|
|
7
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2017-01-18 02:55:59 +03:00
|
|
|
10
|
2016-12-07 23:41:28 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Replaced the ''δ'' rune literal with the ''©'' rune literal in the a var assignment"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2017-01-18 02:55:59 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the b var assignment"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2017-01-18 02:55:59 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the c var assignment"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2017-01-18 02:55:59 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the d var assignment"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2017-01-18 02:55:59 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Replaced the ''⌘'' rune literal with the ''©'' rune literal in the e var assignment"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2017-01-18 21:01:25 +03:00
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added the 'f' var assignment"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"rune-literals.go": [
|
2017-01-18 21:01:25 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted 'f = '⌘jjjj'\n' at line 8, column 3 - line 9, column 1"
|
2016-12-07 23:41:28 +03:00
|
|
|
}
|
|
|
|
]
|
2017-01-24 23:09:28 +03:00
|
|
|
}
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rune-literals.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/rune-literals.go b/rune-literals.go",
|
2017-01-18 21:01:25 +03:00
|
|
|
"index 7d2b6610..346d5d96 100644",
|
2016-12-07 23:41:28 +03:00
|
|
|
"--- a/rune-literals.go",
|
|
|
|
"+++ b/rune-literals.go",
|
2017-01-18 02:55:59 +03:00
|
|
|
"@@ -1,9 +1,9 @@",
|
2016-12-07 23:41:28 +03:00
|
|
|
" package main",
|
|
|
|
" const (",
|
2017-01-18 02:55:59 +03:00
|
|
|
"- a = 'δ'",
|
|
|
|
"- b = '⌘'",
|
|
|
|
"- c = '⌘'",
|
|
|
|
"- d = '⌘'",
|
|
|
|
"- e = '⌘'",
|
2017-01-18 21:01:25 +03:00
|
|
|
"- f = '⌘jjjj'",
|
2017-01-18 02:55:59 +03:00
|
|
|
"+ a = '©'",
|
|
|
|
"+ b = '©'",
|
|
|
|
"+ c = '©'",
|
|
|
|
"+ d = '©'",
|
|
|
|
"+ e = '©'",
|
|
|
|
"+ f = '©'",
|
2016-12-07 23:41:28 +03:00
|
|
|
" )"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-26 04:43:15 +03:00
|
|
|
"shas": "7946dc95b2a2eaa4a44da409ed54a82a54ed188a..9846819cac6a3814f8fc03011b6e0c38af042214"
|
2016-12-07 23:41:28 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-rune-literals-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rune-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
3,
|
2017-01-18 02:55:59 +03:00
|
|
|
7
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2017-01-18 02:55:59 +03:00
|
|
|
10
|
2016-12-07 23:41:28 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
3,
|
2017-01-18 02:55:59 +03:00
|
|
|
7
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2017-01-18 02:55:59 +03:00
|
|
|
10
|
2016-12-07 23:41:28 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Replaced the ''©'' rune literal with the ''δ'' rune literal in the a var assignment"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2017-01-18 02:55:59 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the b var assignment"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2017-01-18 02:55:59 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the c var assignment"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2017-01-18 02:55:59 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the d var assignment"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2017-01-18 02:55:59 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Replaced the ''©'' rune literal with the ''⌘'' rune literal in the e var assignment"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2017-01-24 23:09:28 +03:00
|
|
|
"delete": {
|
2017-01-18 21:01:25 +03:00
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
2017-01-24 23:09:28 +03:00
|
|
|
10
|
2017-01-18 21:01:25 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted the 'f' var assignment"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"rune-literals.go": [
|
2017-01-18 21:01:25 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
2017-01-24 23:09:28 +03:00
|
|
|
3
|
2017-01-18 21:01:25 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added 'f = '⌘jjjj'\n' at line 8, column 3 - line 9, column 1"
|
2016-12-07 23:41:28 +03:00
|
|
|
}
|
|
|
|
]
|
2017-01-24 23:09:28 +03:00
|
|
|
}
|
2016-11-02 18:07:06 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rune-literals.go"
|
|
|
|
],
|
2016-12-02 00:03:52 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/rune-literals.go b/rune-literals.go",
|
2017-01-18 21:01:25 +03:00
|
|
|
"index 346d5d96..7d2b6610 100644",
|
2016-12-02 00:03:52 +03:00
|
|
|
"--- a/rune-literals.go",
|
|
|
|
"+++ b/rune-literals.go",
|
2017-01-18 02:55:59 +03:00
|
|
|
"@@ -1,9 +1,9 @@",
|
2016-12-02 00:03:52 +03:00
|
|
|
" package main",
|
|
|
|
" const (",
|
2017-01-18 02:55:59 +03:00
|
|
|
"- a = '©'",
|
|
|
|
"- b = '©'",
|
|
|
|
"- c = '©'",
|
|
|
|
"- d = '©'",
|
|
|
|
"- e = '©'",
|
|
|
|
"- f = '©'",
|
|
|
|
"+ a = 'δ'",
|
|
|
|
"+ b = '⌘'",
|
|
|
|
"+ c = '⌘'",
|
|
|
|
"+ d = '⌘'",
|
|
|
|
"+ e = '⌘'",
|
2017-01-18 21:01:25 +03:00
|
|
|
"+ f = '⌘jjjj'",
|
2016-12-02 00:03:52 +03:00
|
|
|
" )"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-26 04:43:15 +03:00
|
|
|
"shas": "9846819cac6a3814f8fc03011b6e0c38af042214..cc35d6332ea1c0dc789bfa7f461eba04824cf783"
|
2016-12-02 00:03:52 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-rune-literals-delete-insert-test",
|
|
|
|
"expectedResult": {
|
2016-12-07 23:41:28 +03:00
|
|
|
"changes": {
|
|
|
|
"rune-literals.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2017-01-10 23:09:09 +03:00
|
|
|
3,
|
2017-01-18 02:55:59 +03:00
|
|
|
3
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2017-01-10 23:09:09 +03:00
|
|
|
3,
|
2017-01-18 02:55:59 +03:00
|
|
|
10
|
2016-12-07 23:41:28 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted the 'a' var assignment"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2017-01-10 23:09:09 +03:00
|
|
|
4,
|
2017-01-18 02:55:59 +03:00
|
|
|
3
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2017-01-10 23:09:09 +03:00
|
|
|
4,
|
2017-01-18 02:55:59 +03:00
|
|
|
10
|
2016-12-07 23:41:28 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted the 'b' var assignment"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2017-01-18 02:55:59 +03:00
|
|
|
5,
|
|
|
|
3
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2017-01-18 02:55:59 +03:00
|
|
|
5,
|
|
|
|
10
|
2016-12-07 23:41:28 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted the 'c' var assignment"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2017-01-18 02:55:59 +03:00
|
|
|
6,
|
|
|
|
3
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2017-01-18 02:55:59 +03:00
|
|
|
6,
|
|
|
|
10
|
2016-12-07 23:41:28 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted the 'd' var assignment"
|
2017-01-18 02:55:59 +03:00
|
|
|
},
|
2016-11-02 18:07:06 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2017-01-18 02:55:59 +03:00
|
|
|
7,
|
|
|
|
3
|
2016-11-02 22:25:50 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2017-01-17 23:26:07 +03:00
|
|
|
7,
|
2017-01-18 02:55:59 +03:00
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted the 'e' var assignment"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"rune-literals.go": [
|
2017-01-18 02:55:59 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
3
|
|
|
|
],
|
2017-01-18 21:01:25 +03:00
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted 'f = '⌘jjjj'\n' at line 8, column 3 - line 9, column 1"
|
2016-11-02 23:14:44 +03:00
|
|
|
}
|
|
|
|
]
|
2017-01-24 23:09:28 +03:00
|
|
|
}
|
2016-12-02 00:03:52 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rune-literals.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/rune-literals.go b/rune-literals.go",
|
2017-01-18 21:01:25 +03:00
|
|
|
"index 7d2b6610..c9ecbf5e 100644",
|
2016-12-02 00:03:52 +03:00
|
|
|
"--- a/rune-literals.go",
|
|
|
|
"+++ b/rune-literals.go",
|
2017-01-18 02:55:59 +03:00
|
|
|
"@@ -1,9 +1,2 @@",
|
2016-12-02 00:03:52 +03:00
|
|
|
" package main",
|
|
|
|
"-const (",
|
2017-01-18 02:55:59 +03:00
|
|
|
"- a = 'δ'",
|
|
|
|
"- b = '⌘'",
|
|
|
|
"- c = '⌘'",
|
|
|
|
"- d = '⌘'",
|
|
|
|
"- e = '⌘'",
|
2017-01-18 21:01:25 +03:00
|
|
|
"- f = '⌘jjjj'",
|
2016-12-02 00:03:52 +03:00
|
|
|
"-)",
|
|
|
|
"+"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-26 04:43:15 +03:00
|
|
|
"shas": "cc35d6332ea1c0dc789bfa7f461eba04824cf783..1cc444aa94d7784497f5d15ca15b1569b467732d"
|
2016-12-02 00:03:52 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-rune-literals-teardown-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 23:14:44 +03:00
|
|
|
"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": [
|
2017-01-24 23:09:28 +03:00
|
|
|
1,
|
|
|
|
13
|
2016-11-02 22:25:50 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'main' module"
|
2016-11-02 18:07:06 +03:00
|
|
|
}
|
|
|
|
]
|
2016-12-02 00:03:52 +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",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index c9ecbf5e..e69de29b 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/rune-literals.go",
|
|
|
|
"+++ b/rune-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,2 +0,0 @@",
|
|
|
|
"-package main",
|
|
|
|
"-"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 18:07:06 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-26 04:43:15 +03:00
|
|
|
"shas": "1cc444aa94d7784497f5d15ca15b1569b467732d..fd41bb91afdd6087f0c3e6c54566857b7105df8c"
|
2016-11-02 18:07:06 +03:00
|
|
|
}]
|