2016-11-02 18:07:06 +03:00
|
|
|
[{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-imaginary-literals-setup-test",
|
2016-11-02 18:07:06 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"imaginary-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-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'main' module"
|
2016-11-02 18:07:06 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"imaginary-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index e69de29..7905807 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/imaginary-literals.go",
|
|
|
|
"+++ b/imaginary-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-02 18:07:06 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-12-02 00:07:40 +03:00
|
|
|
"shas": "c6e11cb46b1defca8bc21c168d5345d1bca754c0..ebba121e734bf9df36251a4b4b018e5dde73f43c"
|
2016-11-02 18:07:06 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-imaginary-literals-insert-test",
|
2016-11-02 18:07:06 +03:00
|
|
|
"expectedResult": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"changes": {},
|
2016-11-02 18:07:06 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"imaginary-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 7905807..25a97da 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/imaginary-literals.go",
|
|
|
|
"+++ b/imaginary-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,5 +1,8 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
|
|
|
"-",
|
2016-11-11 00:19:53 +03:00
|
|
|
"+const (",
|
|
|
|
"+a = 01i",
|
|
|
|
"+b = 1.e+100i",
|
|
|
|
"+)",
|
2016-12-02 00:03:52 +03:00
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 18:07:06 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-12-02 00:07:40 +03:00
|
|
|
"shas": "ebba121e734bf9df36251a4b4b018e5dde73f43c..0cd10df9cf0bff0c8853ecf7f79d97d7633e302e"
|
2016-11-02 18:07:06 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-imaginary-literals-replacement-test",
|
|
|
|
"expectedResult": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"changes": {},
|
2016-11-02 18:07:06 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"imaginary-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 25a97da..151a533 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/imaginary-literals.go",
|
|
|
|
"+++ b/imaginary-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -2,7 +2,7 @@ package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-11 00:19:53 +03:00
|
|
|
" const (",
|
|
|
|
"-a = 01i",
|
|
|
|
"-b = 1.e+100i",
|
|
|
|
"+a = 02i",
|
|
|
|
"+b = 1.e+103i",
|
|
|
|
" )",
|
2016-12-02 00:03:52 +03:00
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 18:07:06 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-12-02 00:07:40 +03:00
|
|
|
"shas": "0cd10df9cf0bff0c8853ecf7f79d97d7633e302e..8a65283384def8640e685bf867d953b4f0dbdf38"
|
2016-11-02 18:07:06 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-imaginary-literals-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"changes": {},
|
2016-11-02 18:07:06 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"imaginary-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 151a533..25a97da 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/imaginary-literals.go",
|
|
|
|
"+++ b/imaginary-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -2,7 +2,7 @@ package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-11 00:19:53 +03:00
|
|
|
" const (",
|
|
|
|
"-a = 02i",
|
|
|
|
"-b = 1.e+103i",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+a = 01i",
|
|
|
|
"+b = 1.e+100i",
|
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-02 18:07:06 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-12-02 00:07:40 +03:00
|
|
|
"shas": "8a65283384def8640e685bf867d953b4f0dbdf38..924b64778645ca07840662611cecdf9a72021d11"
|
2016-11-02 18:07:06 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-imaginary-literals-delete-insert-test",
|
2016-11-02 18:07:06 +03:00
|
|
|
"expectedResult": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"changes": {},
|
2016-11-02 18:07:06 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"imaginary-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 25a97da..7905807 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/imaginary-literals.go",
|
|
|
|
"+++ b/imaginary-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,8 +1,5 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
|
|
|
"-const (",
|
2016-11-11 00:19:53 +03:00
|
|
|
"-a = 01i",
|
|
|
|
"-b = 1.e+100i",
|
|
|
|
"-)",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+",
|
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 18:07:06 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-12-02 00:07:40 +03:00
|
|
|
"shas": "924b64778645ca07840662611cecdf9a72021d11..340e9d0364cbabc49d38f9f47114e805440412a1"
|
2016-11-02 18:07:06 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-imaginary-literals-teardown-test",
|
2016-11-02 18:07:06 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"imaginary-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-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-02 22:25:50 +03:00
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'main' module"
|
2016-11-02 18:07:06 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"imaginary-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 7905807..e69de29 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/imaginary-literals.go",
|
|
|
|
"+++ b/imaginary-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-02 18:07:06 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-12-02 00:07:40 +03:00
|
|
|
"shas": "340e9d0364cbabc49d38f9f47114e805440412a1..af43175aa1ae51c7f1760a8d2e73eb14fb55b258"
|
2016-11-02 18:07:06 +03:00
|
|
|
}]
|