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:03:52 +03:00
|
|
|
"shas": "7313c98bc1dadd02edefed0e5dac5b0a8d79ae27..217252e5d50d5f8ea963a59d6921f21d8354eabd"
|
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:03:52 +03:00
|
|
|
"shas": "217252e5d50d5f8ea963a59d6921f21d8354eabd..b88c5f59726b5d8aaa473e9aab7b4cafe821e264"
|
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:03:52 +03:00
|
|
|
"shas": "b88c5f59726b5d8aaa473e9aab7b4cafe821e264..e961cdb966e795008b52148f8199dafffcdd3d15"
|
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:03:52 +03:00
|
|
|
"shas": "e961cdb966e795008b52148f8199dafffcdd3d15..78cf53ac0bcb364ce7640123057d0ac1a7c01d90"
|
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:03:52 +03:00
|
|
|
"shas": "78cf53ac0bcb364ce7640123057d0ac1a7c01d90..4b6d4aef29dba70649dd25f6f537f1364c853464"
|
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:03:52 +03:00
|
|
|
"shas": "4b6d4aef29dba70649dd25f6f537f1364c853464..34ccf43e44945249f16f0e99225d6cea00213df7"
|
2016-11-02 18:07:06 +03:00
|
|
|
}]
|