2016-11-01 23:33:43 +03:00
|
|
|
[{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-int-literals-setup-test",
|
2016-11-01 23:33:43 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go": [
|
2016-11-01 23:33:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
1,
|
2016-11-01 23:33:43 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
|
|
|
1
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'main' module"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go"
|
2016-11-01 23:33:43 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/int-literals.go b/int-literals.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index e69de29b..79058077 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/int-literals.go",
|
|
|
|
"+++ b/int-literals.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-01 23:33:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-18 05:06:49 +03:00
|
|
|
"shas": "2b3745f7288fd026e5bc6065f2c5ecc46801da46..5c0fc7fe2cf63de9d7e11ced5925c1a4dd4404a8"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-int-literals-insert-test",
|
2016-11-01 23:33:43 +03:00
|
|
|
"expectedResult": {
|
2017-01-18 02:55:59 +03:00
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go": [
|
2016-11-02 22:43:26 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2017-01-17 23:26:07 +03:00
|
|
|
5,
|
2016-11-01 23:33:43 +03:00
|
|
|
1
|
|
|
|
],
|
2017-01-18 02:55:59 +03:00
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a' var assignment in the main function of the 'main' module"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
12
|
|
|
|
],
|
2016-11-01 23:33:43 +03:00
|
|
|
"end": [
|
2017-01-17 23:26:07 +03:00
|
|
|
5,
|
|
|
|
20
|
2016-11-01 23:33:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-18 02:55:59 +03:00
|
|
|
"summary": "Added the '2' var assignment in the main function of the 'main' module"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
]
|
2017-01-18 02:55:59 +03:00
|
|
|
},
|
|
|
|
"errors": {}
|
2016-11-01 23:33:43 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go"
|
2016-11-01 23:33:43 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/int-literals.go b/int-literals.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index 79058077..38d36eca 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/int-literals.go",
|
|
|
|
"+++ b/int-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,5 +1,7 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
|
|
|
"-",
|
2016-11-11 00:19:53 +03:00
|
|
|
"+const (",
|
|
|
|
"+a = 1, b = 2, c = 3",
|
|
|
|
"+)",
|
2016-12-02 00:03:52 +03:00
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-01 23:33:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-18 05:06:49 +03:00
|
|
|
"shas": "5c0fc7fe2cf63de9d7e11ced5925c1a4dd4404a8..db8b60793903d8d3af1757a516d10864161b592b"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-int-literals-replacement-test",
|
2016-11-01 23:33:43 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go": [
|
2016-12-07 23:41:28 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Replaced '1' with '4' in the a var assignment of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2016-11-01 23:33:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
12
|
2016-11-01 23:33:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
13
|
2016-11-01 23:33:43 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
12
|
2016-11-01 23:33:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
13
|
2016-11-01 23:33:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Replaced '2' with '5' in the 5 var assignment of the 'main' function"
|
2016-11-11 00:19:53 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-11 00:19:53 +03:00
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-11 00:19:53 +03:00
|
|
|
20
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-11 00:19:53 +03:00
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-11 00:19:53 +03:00
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Replaced '3' with '6' in the 5 var assignment of the 'main' function"
|
2016-11-11 00:19:53 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"int-literals.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/int-literals.go b/int-literals.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index 38d36eca..4f07c130 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/int-literals.go",
|
|
|
|
"+++ b/int-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -2,6 +2,6 @@ package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-11 00:19:53 +03:00
|
|
|
" const (",
|
2016-12-02 00:03:52 +03:00
|
|
|
"-a = 1, b = 2, c = 3",
|
|
|
|
"+a = 4, b = 5, c = 6",
|
2016-11-11 00:19:53 +03:00
|
|
|
" )",
|
2016-12-02 00:03:52 +03:00
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-18 05:06:49 +03:00
|
|
|
"shas": "db8b60793903d8d3af1757a516d10864161b592b..756d94e3b7eed216739b9aa3af8375614979fbc3"
|
2016-11-11 00:19:53 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-int-literals-delete-replacement-test",
|
2016-11-11 00:19:53 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"int-literals.go": [
|
2016-12-07 23:41:28 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Replaced '4' with '1' in the a var assignment of the 'main' function"
|
2016-12-07 23:41:28 +03:00
|
|
|
},
|
2016-11-02 22:43:26 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
12
|
2016-11-02 22:43:26 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
13
|
2016-11-02 22:43:26 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
12
|
2016-11-02 22:43:26 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
13
|
2016-11-02 22:43:26 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Replaced '5' with '2' in the 2 var assignment of the 'main' function"
|
2016-11-01 23:33:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-01 23:33:43 +03:00
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-01 23:33:43 +03:00
|
|
|
20
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-01 23:33:43 +03:00
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-01 23:33:43 +03:00
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-10 23:09:09 +03:00
|
|
|
"summary": "Replaced '6' with '3' in the 2 var assignment of the 'main' function"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go"
|
2016-11-01 23:33:43 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/int-literals.go b/int-literals.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index 4f07c130..38d36eca 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/int-literals.go",
|
|
|
|
"+++ b/int-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -2,6 +2,6 @@ package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-11 00:19:53 +03:00
|
|
|
" const (",
|
|
|
|
"-a = 4, b = 5, c = 6",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+a = 1, b = 2, c = 3",
|
2016-11-11 00:19:53 +03:00
|
|
|
" )",
|
2016-12-02 00:03:52 +03:00
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-01 23:33:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-18 05:06:49 +03:00
|
|
|
"shas": "756d94e3b7eed216739b9aa3af8375614979fbc3..c86e0501cb976cd1cbfad99adc20b1647cedca39"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-int-literals-delete-insert-test",
|
2016-11-01 23:33:43 +03:00
|
|
|
"expectedResult": {
|
2017-01-18 02:55:59 +03:00
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go": [
|
2016-11-02 22:43:26 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2017-01-17 23:26:07 +03:00
|
|
|
5,
|
2016-11-02 22:43:26 +03:00
|
|
|
1
|
|
|
|
],
|
2017-01-18 02:55:59 +03:00
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' var assignment in the main function of the 'main' module"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
12
|
|
|
|
],
|
2016-11-02 22:43:26 +03:00
|
|
|
"end": [
|
2017-01-17 23:26:07 +03:00
|
|
|
5,
|
|
|
|
20
|
2016-11-02 22:43:26 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-18 02:55:59 +03:00
|
|
|
"summary": "Deleted the '2' var assignment in the main function of the 'main' module"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
]
|
2017-01-18 02:55:59 +03:00
|
|
|
},
|
|
|
|
"errors": {}
|
2016-11-01 23:33:43 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go"
|
2016-11-01 23:33:43 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/int-literals.go b/int-literals.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index 38d36eca..79058077 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/int-literals.go",
|
|
|
|
"+++ b/int-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,7 +1,5 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
|
|
|
"-const (",
|
2016-11-11 00:19:53 +03:00
|
|
|
"-a = 1, b = 2, c = 3",
|
|
|
|
"-)",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+",
|
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-01 23:33:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-18 05:06:49 +03:00
|
|
|
"shas": "c86e0501cb976cd1cbfad99adc20b1647cedca39..744c0f81f7e8d39ff4eecefb58d4301afc4d53bd"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-int-literals-teardown-test",
|
2016-11-01 23:33:43 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go": [
|
2016-11-01 23:33:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
1,
|
2016-11-01 23:33:43 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
|
|
|
1
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'main' module"
|
2016-11-01 23:33:43 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"int-literals.go"
|
2016-11-01 23:33:43 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/int-literals.go b/int-literals.go",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index 79058077..e69de29b 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/int-literals.go",
|
|
|
|
"+++ b/int-literals.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-01 23:33:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-18 05:06:49 +03:00
|
|
|
"shas": "744c0f81f7e8d39ff4eecefb58d4301afc4d53bd..b13b8100361e4845134ab1389ca092165ab8c6d4"
|
2016-11-01 23:33:43 +03:00
|
|
|
}]
|