2016-11-02 17:50:05 +03:00
|
|
|
[{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-array-with-implicit-length-setup-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"array-with-implicit-length.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 17:50:05 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2017-01-24 23:09:28 +03:00
|
|
|
1,
|
|
|
|
13
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'main' module"
|
2017-01-24 23:09:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'main' function"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"array-with-implicit-length.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index e69de29b..79058077 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/array-with-implicit-length.go",
|
|
|
|
"+++ b/array-with-implicit-length.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -0,0 +1,5 @@",
|
|
|
|
"+package main",
|
|
|
|
"+",
|
|
|
|
"+func main() {",
|
|
|
|
"+",
|
|
|
|
"+}"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-26 04:27:46 +03:00
|
|
|
"shas": "eebf513ed3b01d35b26a6bc4db9dd32c0a70c17a..5d72316c4715c4e1fa26ae2e03640c93f31d7f34"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-array-with-implicit-length-insert-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
2016-12-07 23:41:28 +03:00
|
|
|
"changes": {
|
|
|
|
"array-with-implicit-length.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
2017-01-10 23:09:09 +03:00
|
|
|
7
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
29
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added the 'a1' var assignment in the main function"
|
2016-12-07 23:41:28 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 17:50:05 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"array-with-implicit-length.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index 79058077..a53dc8c5 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/array-with-implicit-length.go",
|
|
|
|
"+++ b/array-with-implicit-length.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,5 +1,5 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
|
|
|
"-",
|
2016-11-11 00:19:53 +03:00
|
|
|
"+const a1 = [...]int{1, 2, 3}",
|
2016-12-02 00:03:52 +03:00
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-26 04:27:46 +03:00
|
|
|
"shas": "5d72316c4715c4e1fa26ae2e03640c93f31d7f34..d3dde65e2243ffcc05a79f7077dc2b566cb9707f"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-array-with-implicit-length-replacement-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
2016-12-07 23:41:28 +03:00
|
|
|
"changes": {
|
|
|
|
"array-with-implicit-length.go": [
|
2017-01-13 02:50:19 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
22
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added '4' in the [...]int composite_literal of the 'main' function"
|
2017-01-13 02:50:19 +03:00
|
|
|
},
|
2016-12-07 23:41:28 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
22
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
2017-01-13 02:50:19 +03:00
|
|
|
23
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
2017-01-13 02:50:19 +03:00
|
|
|
24
|
2016-12-07 23:41:28 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Replaced '1' with '5' in the [...]int composite_literal of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2017-01-09 23:13:55 +03:00
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
2017-01-13 02:50:19 +03:00
|
|
|
25
|
2017-01-09 23:13:55 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
2017-01-13 02:50:19 +03:00
|
|
|
26
|
2017-01-09 23:13:55 +03:00
|
|
|
]
|
|
|
|
}
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added '6' in the [...]int composite_literal of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2017-01-13 02:50:19 +03:00
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
24
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
25
|
|
|
|
]
|
|
|
|
}
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted '2' in the [...]int composite_literal of the 'main' function"
|
2017-01-09 23:13:55 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
27
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
28
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted '3' in the [...]int composite_literal of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"array-with-implicit-length.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index a53dc8c5..e9e3d08f 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/array-with-implicit-length.go",
|
|
|
|
"+++ b/array-with-implicit-length.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,5 +1,5 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-11 00:19:53 +03:00
|
|
|
"-const a1 = [...]int{1, 2, 3}",
|
|
|
|
"+const a1 = [...]int{4,5,6}",
|
2016-12-02 00:03:52 +03:00
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 21:37:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-26 04:27:46 +03:00
|
|
|
"shas": "d3dde65e2243ffcc05a79f7077dc2b566cb9707f..f39c8a58221175d20ef1822b8aaf6b9c57d52e59"
|
2016-11-02 21:37:30 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-array-with-implicit-length-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
2016-12-07 23:41:28 +03:00
|
|
|
"changes": {
|
|
|
|
"array-with-implicit-length.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
2017-01-13 02:50:19 +03:00
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
22
|
|
|
|
]
|
|
|
|
}
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added '1' in the [...]int composite_literal of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2017-01-09 23:13:55 +03:00
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
24
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
25
|
|
|
|
]
|
|
|
|
}
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added '2' in the [...]int composite_literal of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2017-01-13 02:50:19 +03:00
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
27
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
28
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added '3' in the [...]int composite_literal of the 'main' function"
|
2017-01-13 02:50:19 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
22
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted '4' in the [...]int composite_literal of the 'main' function"
|
2017-01-13 02:50:19 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
23
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
24
|
|
|
|
]
|
|
|
|
}
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted '5' in the [...]int composite_literal of the 'main' function"
|
2017-01-09 23:13:55 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
25
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
26
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted '6' in the [...]int composite_literal of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 17:50:05 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"array-with-implicit-length.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index e9e3d08f..a53dc8c5 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/array-with-implicit-length.go",
|
|
|
|
"+++ b/array-with-implicit-length.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,5 +1,5 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-11 00:19:53 +03:00
|
|
|
"-const a1 = [...]int{4,5,6}",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+const a1 = [...]int{1, 2, 3}",
|
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-26 04:27:46 +03:00
|
|
|
"shas": "f39c8a58221175d20ef1822b8aaf6b9c57d52e59..6807823e2971be30d1ed90b1091d8b814f04598f"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-array-with-implicit-length-delete-insert-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
2016-12-07 23:41:28 +03:00
|
|
|
"changes": {
|
|
|
|
"array-with-implicit-length.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
2017-01-10 23:09:09 +03:00
|
|
|
7
|
2016-12-07 23:41:28 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
29
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted the 'a1' var assignment in the main function"
|
2016-12-07 23:41:28 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 17:50:05 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"array-with-implicit-length.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index a53dc8c5..79058077 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/array-with-implicit-length.go",
|
|
|
|
"+++ b/array-with-implicit-length.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,5 +1,5 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-11 00:19:53 +03:00
|
|
|
"-const a1 = [...]int{1, 2, 3}",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+",
|
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-26 04:27:46 +03:00
|
|
|
"shas": "6807823e2971be30d1ed90b1091d8b814f04598f..4301ee7fe32813636cb240935e2a2866792f57d4"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-array-with-implicit-length-teardown-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"array-with-implicit-length.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 17:50:05 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2017-01-24 23:09:28 +03:00
|
|
|
1,
|
|
|
|
13
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'main' module"
|
2017-01-24 23:09:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'main' function"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"array-with-implicit-length.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index 79058077..e69de29b 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/array-with-implicit-length.go",
|
|
|
|
"+++ b/array-with-implicit-length.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,5 +0,0 @@",
|
|
|
|
"-package main",
|
|
|
|
"-",
|
|
|
|
"-func main() {",
|
|
|
|
"-",
|
|
|
|
"-}"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-26 04:27:46 +03:00
|
|
|
"shas": "4301ee7fe32813636cb240935e2a2866792f57d4..6c2f41672d6f59348b9fd199f5e85bbca43abdfe"
|
2016-11-02 17:50:05 +03:00
|
|
|
}]
|