1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/go/label-statements.json
2017-01-05 17:08:28 -05:00

287 lines
8.5 KiB
JSON

[{
"testCaseDescription": "go-label-statements-setup-test",
"expectedResult": {
"changes": {
"label-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
6,
1
]
}
},
"summary": "Added the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"label-statements.go"
],
"patch": [
"diff --git a/label-statements.go b/label-statements.go",
"index e69de29..7905807 100644",
"--- a/label-statements.go",
"+++ b/label-statements.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "08ffb30570dd5dfa94d28706aba89d46d94d95de..62346908f2a062899ea117e430c03ad994a08cdf"
}
,{
"testCaseDescription": "go-label-statements-insert-test",
"expectedResult": {
"changes": {
"label-statements.go": [
{
"span": {
"insert": {
"start": [
5,
3
],
"end": [
5,
15
]
}
},
"summary": "Added the 'insert_label' identifier in the main function of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"label-statements.go"
],
"patch": [
"diff --git a/label-statements.go b/label-statements.go",
"index 7905807..b0a2969 100644",
"--- a/label-statements.go",
"+++ b/label-statements.go",
"@@ -1,5 +1,7 @@",
" package main",
" ",
" func main() {",
"-",
"+{",
"+ insert_label:",
"+}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "62346908f2a062899ea117e430c03ad994a08cdf..75d8a1b7f66e8f17eaebf59f989d436b0b4b2621"
}
,{
"testCaseDescription": "go-label-statements-replacement-test",
"expectedResult": {
"changes": {
"label-statements.go": [
{
"span": {
"replace": [
{
"start": [
5,
3
],
"end": [
5,
15
]
},
{
"start": [
5,
3
],
"end": [
5,
20
]
}
]
},
"summary": "Replaced the 'insert_label' identifier with the 'replacement_label' identifier in the main function of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"label-statements.go"
],
"patch": [
"diff --git a/label-statements.go b/label-statements.go",
"index b0a2969..3d3cf16 100644",
"--- a/label-statements.go",
"+++ b/label-statements.go",
"@@ -2,6 +2,6 @@ package main",
" ",
" func main() {",
" {",
"- insert_label:",
"+ replacement_label:",
" }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "75d8a1b7f66e8f17eaebf59f989d436b0b4b2621..07acb718a813eb362bb991db1ef6a850a15d6864"
}
,{
"testCaseDescription": "go-label-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"label-statements.go": [
{
"span": {
"replace": [
{
"start": [
5,
3
],
"end": [
5,
20
]
},
{
"start": [
5,
3
],
"end": [
5,
15
]
}
]
},
"summary": "Replaced the 'replacement_label' identifier with the 'insert_label' identifier in the main function of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"label-statements.go"
],
"patch": [
"diff --git a/label-statements.go b/label-statements.go",
"index 3d3cf16..b0a2969 100644",
"--- a/label-statements.go",
"+++ b/label-statements.go",
"@@ -2,6 +2,6 @@ package main",
" ",
" func main() {",
" {",
"- replacement_label:",
"+ insert_label:",
" }",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "07acb718a813eb362bb991db1ef6a850a15d6864..04bd2e9f3cf9820fe05fe37177e073d013f271e9"
}
,{
"testCaseDescription": "go-label-statements-delete-insert-test",
"expectedResult": {
"changes": {
"label-statements.go": [
{
"span": {
"delete": {
"start": [
5,
3
],
"end": [
5,
15
]
}
},
"summary": "Deleted the 'insert_label' identifier in the main function of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"label-statements.go"
],
"patch": [
"diff --git a/label-statements.go b/label-statements.go",
"index b0a2969..7905807 100644",
"--- a/label-statements.go",
"+++ b/label-statements.go",
"@@ -1,7 +1,5 @@",
" package main",
" ",
" func main() {",
"-{",
"- insert_label:",
"-}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "04bd2e9f3cf9820fe05fe37177e073d013f271e9..7e5d659d967ba59085d045a2cdb6a31754887610"
}
,{
"testCaseDescription": "go-label-statements-teardown-test",
"expectedResult": {
"changes": {
"label-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
6,
1
]
}
},
"summary": "Deleted the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"label-statements.go"
],
"patch": [
"diff --git a/label-statements.go b/label-statements.go",
"index 7905807..e69de29 100644",
"--- a/label-statements.go",
"+++ b/label-statements.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "7e5d659d967ba59085d045a2cdb6a31754887610..3c18118ea8496b4ffea7d20ce7e0302dded5c3d1"
}]