2016-11-02 17:50:05 +03:00
|
|
|
[{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-indexing-expressions-setup-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
6,
|
2016-12-02 00:03:52 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'main' module"
|
2016-11-21 22:39:16 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"indexing-expressions.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index e69de29..7905807 100644",
|
2016-11-21 22:39:16 +03:00
|
|
|
"--- a/indexing-expressions.go",
|
|
|
|
"+++ b/indexing-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -0,0 +1,5 @@",
|
|
|
|
"+package main",
|
|
|
|
"+",
|
|
|
|
"+func main() {",
|
|
|
|
"+",
|
|
|
|
"+}"
|
2016-11-21 22:39:16 +03:00
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-12-07 21:26:31 +03:00
|
|
|
"shas": "54d50ce002201d9b758fcd44c8c0cc7d2df914e0..7bd8ea7bdc8342f0c580370bd4a847d512c7c1a2"
|
2016-11-21 22:39:16 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-indexing-expressions-insert-test",
|
2016-11-21 22:39:16 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"indexing-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
4,
|
2016-12-02 00:03:52 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
4,
|
2016-12-02 00:03:52 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'a[1]' subscript access in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
5,
|
2016-11-21 22:39:16 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
5,
|
2016-12-02 00:03:52 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'b[b[:]]' subscript access in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
6,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
6,
|
2016-12-02 00:03:52 +03:00
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'c[1]' subscript access in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
7,
|
2016-12-02 00:03:52 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
7,
|
2016-12-02 00:03:52 +03:00
|
|
|
8
|
2016-11-02 21:37:30 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'd[1:2]' subscript access in the main function of the 'main' module"
|
2016-11-02 21:37:30 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
8,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
2016-12-02 00:03:52 +03:00
|
|
|
9
|
2016-11-21 22:39:16 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'e[2:3]' subscript access in the main function of the 'main' module"
|
2016-11-21 22:39:16 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
9,
|
|
|
|
2
|
2016-11-02 21:37:30 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-21 22:39:16 +03:00
|
|
|
9,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'f[1:2:3]' subscript access in the main function of the 'main' module"
|
2016-11-11 00:19:53 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"indexing-expressions.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 7905807..c2c7693 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/indexing-expressions.go",
|
|
|
|
"+++ b/indexing-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,5 +1,10 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
|
|
|
"-",
|
2016-11-11 00:19:53 +03:00
|
|
|
"+a[1]",
|
|
|
|
"+ b[:]",
|
|
|
|
"+ c[1:]",
|
|
|
|
"+ d[1:2]",
|
|
|
|
"+ e[:2:3]",
|
2016-11-21 22:39:16 +03:00
|
|
|
"+ f[1:2:3]",
|
2016-12-02 00:03:52 +03:00
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-12-07 21:26:31 +03:00
|
|
|
"shas": "7bd8ea7bdc8342f0c580370bd4a847d512c7c1a2..1154b3cc706dc8f22fa6daf6558b628d4c5ac04e"
|
2016-11-11 00:19:53 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-indexing-expressions-replacement-test",
|
2016-11-11 00:19:53 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"indexing-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
5
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Replaced the 'a[1]' subscript access with the 'z[2]' subscript access in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 19:30:48 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
2
|
2016-11-22 19:30:48 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
3
|
2016-11-22 19:30:48 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-22 19:30:48 +03:00
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-22 19:30:48 +03:00
|
|
|
3
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Replaced the 'b' identifier with the 'y' identifier in the y[1] subscript access of the 'main' function"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added '1' in the y[1] subscript access of the 'main' function"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 19:30:48 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-22 19:30:48 +03:00
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-22 19:30:48 +03:00
|
|
|
3
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-22 19:30:48 +03:00
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-22 19:30:48 +03:00
|
|
|
3
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Replaced the 'c' identifier with the 'x' identifier in the x[1] subscript access of the 'main' function"
|
2016-11-21 22:39:16 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"indexing-expressions.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index c2c7693..68a7634 100644",
|
2016-11-21 22:39:16 +03:00
|
|
|
"--- a/indexing-expressions.go",
|
|
|
|
"+++ b/indexing-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,9 +1,9 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
|
|
|
"-a[1]",
|
|
|
|
"- b[:]",
|
|
|
|
"- c[1:]",
|
|
|
|
"+z[:2]",
|
|
|
|
"+ y[:1]",
|
|
|
|
"+ x[1:]",
|
2016-11-21 22:39:16 +03:00
|
|
|
" d[1:2]",
|
|
|
|
" e[:2:3]",
|
|
|
|
" f[1:2:3]"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-12-07 21:26:31 +03:00
|
|
|
"shas": "1154b3cc706dc8f22fa6daf6558b628d4c5ac04e..b3b38c4a28aeeb82d8e147918264a6bf8f5fd8d8"
|
2016-11-21 22:39:16 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-indexing-expressions-delete-replacement-test",
|
2016-11-21 22:39:16 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"indexing-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 19:30:48 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-22 19:30:48 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
|
|
|
6
|
2016-11-22 19:30:48 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-22 19:30:48 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
|
|
|
5
|
2016-11-22 19:30:48 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Replaced the 'z[2]' subscript access with the 'a[1]' subscript access in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
3
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
3
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Replaced the 'y' identifier with the 'b' identifier in the b[b[:]] subscript access of the 'main' function"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
5,
|
2016-11-11 00:19:53 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-21 22:39:16 +03:00
|
|
|
6
|
2016-11-02 21:37:30 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted '1' in the b[b[:]] subscript access of the 'main' function"
|
2016-11-02 21:37:30 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
3
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
3
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Replaced the 'x' identifier with the 'c' identifier in the c[1] subscript access of the 'main' function"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 68a7634..c2c7693 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/indexing-expressions.go",
|
|
|
|
"+++ b/indexing-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,9 +1,9 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-21 22:39:16 +03:00
|
|
|
"-z[:2]",
|
|
|
|
"- y[:1]",
|
|
|
|
"- x[1:]",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+a[1]",
|
|
|
|
"+ b[:]",
|
|
|
|
"+ c[1:]",
|
2016-11-21 22:39:16 +03:00
|
|
|
" d[1:2]",
|
|
|
|
" e[:2:3]",
|
|
|
|
" f[1:2:3]"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-12-07 21:26:31 +03:00
|
|
|
"shas": "b3b38c4a28aeeb82d8e147918264a6bf8f5fd8d8..f05bb4e56c7e751ca0b3979e5052c7fac79e5933"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-indexing-expressions-delete-insert-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-11 00:19:53 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'a[1]' subscript access in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-11 00:19:53 +03:00
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'b[b[:]]' subscript access in the main function of the 'main' module"
|
2016-11-11 00:19:53 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-21 22:39:16 +03:00
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'c[1]' subscript access in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
7,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
7,
|
2016-11-21 22:39:16 +03:00
|
|
|
8
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'd[1:2]' subscript access in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
8,
|
2016-11-21 22:39:16 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
8,
|
2016-11-21 22:39:16 +03:00
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'e[2:3]' subscript access in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
9,
|
2016-11-02 17:50:05 +03:00
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
9,
|
2016-11-21 22:39:16 +03:00
|
|
|
10
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'f[1:2:3]' subscript access in the main function of the 'main' module"
|
2016-11-21 22:39:16 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"indexing-expressions.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index c2c7693..7905807 100644",
|
2016-11-21 22:39:16 +03:00
|
|
|
"--- a/indexing-expressions.go",
|
|
|
|
"+++ b/indexing-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,10 +1,5 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-21 22:39:16 +03:00
|
|
|
"-a[1]",
|
|
|
|
"- b[:]",
|
|
|
|
"- c[1:]",
|
|
|
|
"- d[1:2]",
|
|
|
|
"- e[:2:3]",
|
|
|
|
"- f[1:2:3]",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+",
|
|
|
|
" }"
|
2016-11-21 22:39:16 +03:00
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-12-07 21:26:31 +03:00
|
|
|
"shas": "f05bb4e56c7e751ca0b3979e5052c7fac79e5933..234bbd4df8fa649115280c6bc6104de9d5e4b193"
|
2016-11-21 22:39:16 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-indexing-expressions-teardown-test",
|
2016-11-21 22:39:16 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"indexing-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-21 22:39:16 +03:00
|
|
|
1,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
6,
|
2016-12-02 00:03:52 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/indexing-expressions.go b/indexing-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 7905807..e69de29 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/indexing-expressions.go",
|
|
|
|
"+++ b/indexing-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,5 +0,0 @@",
|
|
|
|
"-package main",
|
|
|
|
"-",
|
|
|
|
"-func main() {",
|
|
|
|
"-",
|
|
|
|
"-}"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-12-07 21:26:31 +03:00
|
|
|
"shas": "234bbd4df8fa649115280c6bc6104de9d5e4b193..8382ed38c473783e21fa743b27dc41b7a26fb135"
|
2016-11-02 17:50:05 +03:00
|
|
|
}]
|