2016-11-01 01:22:10 +03:00
|
|
|
[{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-label-statements-setup-test",
|
2016-11-01 01:22:10 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"label-statements.go": [
|
2016-11-01 01:22:10 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
1,
|
|
|
|
1
|
2016-11-01 01:22:10 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
|
|
|
1
|
2016-11-01 01:22:10 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'main' module"
|
2016-11-01 01:22:10 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"label-statements.go"
|
2016-11-01 01:22:10 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/label-statements.go b/label-statements.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index e69de29..7905807 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/label-statements.go",
|
|
|
|
"+++ b/label-statements.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 01:22:10 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-06 01:08:28 +03:00
|
|
|
"shas": "08ffb30570dd5dfa94d28706aba89d46d94d95de..62346908f2a062899ea117e430c03ad994a08cdf"
|
2016-11-01 01:22:10 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-label-statements-insert-test",
|
2016-11-01 01:22:10 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"label-statements.go": [
|
2016-11-11 00:19:53 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
2016-11-01 01:22:10 +03:00
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'insert_label' identifier in the main function of the 'main' module"
|
2016-11-01 01:22:10 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"label-statements.go"
|
2016-11-01 01:22:10 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/label-statements.go b/label-statements.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 7905807..b0a2969 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/label-statements.go",
|
|
|
|
"+++ b/label-statements.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
|
|
|
"+{",
|
|
|
|
"+ insert_label:",
|
|
|
|
"+}",
|
|
|
|
" }"
|
|
|
|
],
|
2016-11-01 01:22:10 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-06 01:08:28 +03:00
|
|
|
"shas": "62346908f2a062899ea117e430c03ad994a08cdf..75d8a1b7f66e8f17eaebf59f989d436b0b4b2621"
|
2016-11-01 01:22:10 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-label-statements-replacement-test",
|
2016-11-01 01:22:10 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"label-statements.go": [
|
2016-11-01 01:22:10 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
3
|
2016-11-01 01:22:10 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
15
|
2016-11-01 01:22:10 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
3
|
2016-11-01 01:22:10 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
20
|
2016-11-01 01:22:10 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Replaced the 'insert_label' identifier with the 'replacement_label' identifier in the main function of the 'main' module"
|
2016-11-01 01:22:10 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"label-statements.go"
|
2016-11-01 01:22:10 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/label-statements.go b/label-statements.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index b0a2969..3d3cf16 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/label-statements.go",
|
|
|
|
"+++ b/label-statements.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
|
|
|
" {",
|
2016-12-02 00:03:52 +03:00
|
|
|
"- insert_label:",
|
|
|
|
"+ replacement_label:",
|
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 01:22:10 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-06 01:08:28 +03:00
|
|
|
"shas": "75d8a1b7f66e8f17eaebf59f989d436b0b4b2621..07acb718a813eb362bb991db1ef6a850a15d6864"
|
2016-11-01 01:22:10 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-label-statements-delete-replacement-test",
|
2016-11-01 01:22:10 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"label-statements.go": [
|
2016-11-01 01:22:10 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
3
|
2016-11-01 01:22:10 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
20
|
2016-11-01 01:22:10 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
3
|
2016-11-01 01:22:10 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
15
|
2016-11-01 01:22:10 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Replaced the 'replacement_label' identifier with the 'insert_label' identifier in the main function of the 'main' module"
|
2016-11-01 01:22:10 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"label-statements.go"
|
2016-11-01 01:22:10 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/label-statements.go b/label-statements.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 3d3cf16..b0a2969 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/label-statements.go",
|
|
|
|
"+++ b/label-statements.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
|
|
|
" {",
|
2016-12-02 00:03:52 +03:00
|
|
|
"- replacement_label:",
|
|
|
|
"+ insert_label:",
|
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 01:22:10 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-06 01:08:28 +03:00
|
|
|
"shas": "07acb718a813eb362bb991db1ef6a850a15d6864..04bd2e9f3cf9820fe05fe37177e073d013f271e9"
|
2016-11-01 01:22:10 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-label-statements-delete-insert-test",
|
2016-11-01 01:22:10 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"label-statements.go": [
|
2016-11-01 01:22:10 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
3
|
2016-11-01 01:22:10 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
15
|
2016-11-01 01:22:10 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'insert_label' identifier in the main function of the 'main' module"
|
2016-11-01 01:22:10 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"label-statements.go"
|
2016-11-01 01:22:10 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/label-statements.go b/label-statements.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index b0a2969..7905807 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/label-statements.go",
|
|
|
|
"+++ b/label-statements.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,7 +1,5 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-11 00:19:53 +03:00
|
|
|
"-{",
|
|
|
|
"- insert_label:",
|
|
|
|
"-}",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+",
|
2016-11-11 00:19:53 +03:00
|
|
|
" }"
|
|
|
|
],
|
2016-11-01 01:22:10 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-06 01:08:28 +03:00
|
|
|
"shas": "04bd2e9f3cf9820fe05fe37177e073d013f271e9..7e5d659d967ba59085d045a2cdb6a31754887610"
|
2016-11-01 01:22:10 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-label-statements-teardown-test",
|
2016-11-01 01:22:10 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"label-statements.go": [
|
2016-11-01 01:22:10 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
1,
|
|
|
|
1
|
2016-11-01 01:22:10 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
|
|
|
1
|
2016-11-01 01:22:10 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'main' module"
|
2016-11-01 01:22:10 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"label-statements.go"
|
2016-11-01 01:22:10 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/label-statements.go b/label-statements.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 7905807..e69de29 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/label-statements.go",
|
|
|
|
"+++ b/label-statements.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 01:22:10 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-06 01:08:28 +03:00
|
|
|
"shas": "7e5d659d967ba59085d045a2cdb6a31754887610..3c18118ea8496b4ffea7d20ce7e0302dded5c3d1"
|
2016-11-01 01:22:10 +03:00
|
|
|
}]
|