2016-11-02 18:07:06 +03:00
|
|
|
[{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-string-literals-setup-test",
|
2016-11-02 18:07:06 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"string-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": [
|
|
|
|
"string-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/string-literals.go b/string-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index e69de29..7905807 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/string-literals.go",
|
|
|
|
"+++ b/string-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": "af43175aa1ae51c7f1760a8d2e73eb14fb55b258..93541693f72981f651d191746c237b1ce257d084"
|
2016-11-02 18:07:06 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-string-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": [
|
|
|
|
"string-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/string-literals.go b/string-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 7905807..9a69966 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/string-literals.go",
|
|
|
|
"+++ b/string-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 = \"0\"",
|
|
|
|
"+b = \"hello world\"",
|
|
|
|
"+)",
|
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": "93541693f72981f651d191746c237b1ce257d084..2d7f4314c9ba6f28e4988fd55f8408bfb76f872f"
|
2016-11-02 18:07:06 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-string-literals-replacement-test",
|
|
|
|
"expectedResult": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"changes": {},
|
2016-11-02 18:07:06 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"string-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/string-literals.go b/string-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 9a69966..fbbdb93 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/string-literals.go",
|
|
|
|
"+++ b/string-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 = \"0\"",
|
|
|
|
"-b = \"hello world\"",
|
|
|
|
"+a = \"2\"",
|
|
|
|
"+b = \"hi\"",
|
|
|
|
" )",
|
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": "2d7f4314c9ba6f28e4988fd55f8408bfb76f872f..8db5fa4e300063021265342271797b5c1226bcb9"
|
2016-11-02 18:07:06 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-string-literals-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"changes": {},
|
2016-11-02 18:07:06 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"string-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/string-literals.go b/string-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index fbbdb93..9a69966 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/string-literals.go",
|
|
|
|
"+++ b/string-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 = \"2\"",
|
|
|
|
"-b = \"hi\"",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+a = \"0\"",
|
|
|
|
"+b = \"hello world\"",
|
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": "8db5fa4e300063021265342271797b5c1226bcb9..d5f2b9939de51400fbdfd1c072a1f0b477e41019"
|
2016-11-02 18:07:06 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-string-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": [
|
|
|
|
"string-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/string-literals.go b/string-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 9a69966..7905807 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/string-literals.go",
|
|
|
|
"+++ b/string-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 = \"0\"",
|
|
|
|
"-b = \"hello world\"",
|
|
|
|
"-)",
|
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": "d5f2b9939de51400fbdfd1c072a1f0b477e41019..43e625b401c24b5c38fe0f277ed07e8a53aa3131"
|
2016-11-02 18:07:06 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-string-literals-teardown-test",
|
2016-11-02 18:07:06 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"string-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": [
|
|
|
|
"string-literals.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/string-literals.go b/string-literals.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 7905807..e69de29 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/string-literals.go",
|
|
|
|
"+++ b/string-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": "43e625b401c24b5c38fe0f277ed07e8a53aa3131..59fae6750028b3a61e5928259e33b8840bd245c7"
|
2016-11-02 18:07:06 +03:00
|
|
|
}]
|