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-11 16:30:01 -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 e69de29b..79058077 100644",
"--- a/label-statements.go",
"+++ b/label-statements.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "05d44f149fc64a76f6112b2939238ad2fa8c5329..6554a1f98eb51e33419957894eb6c5baa041d502"
}
,{
"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 79058077..b0a29697 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": "6554a1f98eb51e33419957894eb6c5baa041d502..d9c0a6b1649d1eaec82ab43a8f9689ef593a1945"
}
,{
"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 b0a29697..3d3cf164 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": "d9c0a6b1649d1eaec82ab43a8f9689ef593a1945..d69256066efff20fff409d4433d9a3391a7a1dc6"
}
,{
"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 3d3cf164..b0a29697 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": "d69256066efff20fff409d4433d9a3391a7a1dc6..2f4efb5328c92e344b1818f84c2d204f9297e059"
}
,{
"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 b0a29697..79058077 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": "2f4efb5328c92e344b1818f84c2d204f9297e059..a05887d4dde8ffc5ecfc0698e5ad9f4bc9694709"
}
,{
"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 79058077..e69de29b 100644",
"--- a/label-statements.go",
"+++ b/label-statements.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "a05887d4dde8ffc5ecfc0698e5ad9f4bc9694709..482e8ff1ba491df75e6d6d9ae345ce0a93760c98"
}]