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

185 lines
5.5 KiB
JSON

[{
"testCaseDescription": "go-array-with-implicit-length-setup-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
6,
1
]
}
},
"summary": "Added the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index e69de29..7905807 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "919069e42d1645813da411bdab2621fea2098544..f68695a3bbfaa31b7ef996800eed09adc53c171b"
}
,{
"testCaseDescription": "go-array-with-implicit-length-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index 7905807..a53dc8c 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
"+const a1 = [...]int{1, 2, 3}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "f68695a3bbfaa31b7ef996800eed09adc53c171b..3572d819e013113b546e12cf73ab742899cbca1d"
}
,{
"testCaseDescription": "go-array-with-implicit-length-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index a53dc8c..e9e3d08 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-const a1 = [...]int{1, 2, 3}",
"+const a1 = [...]int{4,5,6}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "3572d819e013113b546e12cf73ab742899cbca1d..55460ab587f6a6cdb268d6a95cc17f6ba14698bb"
}
,{
"testCaseDescription": "go-array-with-implicit-length-delete-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index e9e3d08..a53dc8c 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-const a1 = [...]int{4,5,6}",
"+const a1 = [...]int{1, 2, 3}",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "55460ab587f6a6cdb268d6a95cc17f6ba14698bb..4765f847720b4a05b9f8343c0e997af48a6f19e3"
}
,{
"testCaseDescription": "go-array-with-implicit-length-delete-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index a53dc8c..7905807 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-const a1 = [...]int{1, 2, 3}",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "4765f847720b4a05b9f8343c0e997af48a6f19e3..0400675a93b451e5d089dafc934dfba7d618add1"
}
,{
"testCaseDescription": "go-array-with-implicit-length-teardown-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
6,
1
]
}
},
"summary": "Deleted the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index 7905807..e69de29 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "0400675a93b451e5d089dafc934dfba7d618add1..3368351bbfc2d540c3d5fd66f26115442e436374"
}]