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/const-with-implicit-values.json
2016-12-06 16:09:12 -05:00

203 lines
5.7 KiB
JSON

[{
"testCaseDescription": "go-const-with-implicit-values-setup-test",
"expectedResult": {
"changes": {
"const-with-implicit-values.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
6,
1
]
}
},
"summary": "Added the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"patch": [
"diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go",
"index e69de29..7905807 100644",
"--- a/const-with-implicit-values.go",
"+++ b/const-with-implicit-values.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "96e86ae6694942f3beb464274d34310c55531b89..89b94d019c6c12a7f50d71bcb40bd47b2d08f18d"
}
,{
"testCaseDescription": "go-const-with-implicit-values-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"patch": [
"diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go",
"index 7905807..d98ee4c 100644",
"--- a/const-with-implicit-values.go",
"+++ b/const-with-implicit-values.go",
"@@ -1,5 +1,9 @@",
" package main",
" ",
" func main() {",
"-",
"+const (",
"+ zero = iota",
"+ one",
"+ two",
"+ )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "89b94d019c6c12a7f50d71bcb40bd47b2d08f18d..20b1d3edaeae6b596dcc6a2d03a41c6bc31d755c"
}
,{
"testCaseDescription": "go-const-with-implicit-values-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"patch": [
"diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go",
"index d98ee4c..c4c9127 100644",
"--- a/const-with-implicit-values.go",
"+++ b/const-with-implicit-values.go",
"@@ -2,8 +2,8 @@ package main",
" ",
" func main() {",
" const (",
"- zero = iota",
"- one",
"- two",
"+ a = iota",
"+ b",
"+ c",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "20b1d3edaeae6b596dcc6a2d03a41c6bc31d755c..868123974c12d73b9565920bc80965535fe6d90c"
}
,{
"testCaseDescription": "go-const-with-implicit-values-delete-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"patch": [
"diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go",
"index c4c9127..d98ee4c 100644",
"--- a/const-with-implicit-values.go",
"+++ b/const-with-implicit-values.go",
"@@ -2,8 +2,8 @@ package main",
" ",
" func main() {",
" const (",
"- a = iota",
"- b",
"- c",
"+ zero = iota",
"+ one",
"+ two",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "868123974c12d73b9565920bc80965535fe6d90c..f592b486c42de038ca32b9c7309ae8f403b4e6b2"
}
,{
"testCaseDescription": "go-const-with-implicit-values-delete-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"patch": [
"diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go",
"index d98ee4c..7905807 100644",
"--- a/const-with-implicit-values.go",
"+++ b/const-with-implicit-values.go",
"@@ -1,9 +1,5 @@",
" package main",
" ",
" func main() {",
"-const (",
"- zero = iota",
"- one",
"- two",
"- )",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "f592b486c42de038ca32b9c7309ae8f403b4e6b2..1a05387c03c52b3870d872d6de401fc8fad2aabe"
}
,{
"testCaseDescription": "go-const-with-implicit-values-teardown-test",
"expectedResult": {
"changes": {
"const-with-implicit-values.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
6,
1
]
}
},
"summary": "Deleted the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"const-with-implicit-values.go"
],
"patch": [
"diff --git a/const-with-implicit-values.go b/const-with-implicit-values.go",
"index 7905807..e69de29 100644",
"--- a/const-with-implicit-values.go",
"+++ b/const-with-implicit-values.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "1a05387c03c52b3870d872d6de401fc8fad2aabe..1931667663612297a17daf759b89b2c5533a7ba2"
}]