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": [
|
2017-01-24 23:09:28 +03:00
|
|
|
1,
|
|
|
|
13
|
2016-11-01 01:22:10 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'main' module"
|
2017-01-24 23:09:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'main' function"
|
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",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index e69de29b..79058077 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-02-07 19:37:47 +03:00
|
|
|
"shas": "3b8c04146e306d10e05370f01c662eccc49a57d3..57ed8dedb7bf3c601f9e69e85985f53d45987fa6"
|
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
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Added the 'insert_label' identifier in the main function"
|
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",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index 79058077..b0a29697 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-02-07 19:37:47 +03:00
|
|
|
"shas": "57ed8dedb7bf3c601f9e69e85985f53d45987fa6..bce262b3d8e0c0bb6ecd7868b7f1803becf81dc0"
|
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
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Replaced the 'insert_label' identifier with the 'replacement_label' identifier in the main function"
|
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",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index b0a29697..3d3cf164 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-02-07 19:37:47 +03:00
|
|
|
"shas": "bce262b3d8e0c0bb6ecd7868b7f1803becf81dc0..b494a966e834feb39879a93b81b6db2f3c02da0a"
|
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
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Replaced the 'replacement_label' identifier with the 'insert_label' identifier in the main function"
|
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",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index 3d3cf164..b0a29697 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-02-07 19:37:47 +03:00
|
|
|
"shas": "b494a966e834feb39879a93b81b6db2f3c02da0a..898ee4bc471eb5701491310314d6798e2754f6ba"
|
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
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-24 23:09:28 +03:00
|
|
|
"summary": "Deleted the 'insert_label' identifier in the main function"
|
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",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index b0a29697..79058077 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-02-07 19:37:47 +03:00
|
|
|
"shas": "898ee4bc471eb5701491310314d6798e2754f6ba..6ad29ac732fa4ca88ade6068c03047620ccf81e3"
|
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": [
|
2017-01-24 23:09:28 +03:00
|
|
|
1,
|
|
|
|
13
|
2016-11-01 01:22:10 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'main' module"
|
2017-01-24 23:09:28 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'main' function"
|
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",
|
2017-01-17 23:26:07 +03:00
|
|
|
"index 79058077..e69de29b 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-02-07 19:37:47 +03:00
|
|
|
"shas": "6ad29ac732fa4ca88ade6068c03047620ccf81e3..05733ec654b2b20d054881640e8c5726bbe00f6d"
|
2016-11-01 01:22:10 +03:00
|
|
|
}]
|