1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/go/imaginary-literals.json
2016-12-01 16:03:52 -05:00

197 lines
5.3 KiB
JSON

[{
"testCaseDescription": "go-imaginary-literals-setup-test",
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
6,
1
]
}
},
"summary": "Added the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index e69de29..7905807 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "08f6651cadd919c4daa0e50e7692fd79fd4f174a..058ac07a0f3562f11831ab26625123ab5766e1e6"
}
,{
"testCaseDescription": "go-imaginary-literals-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index 7905807..25a97da 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -1,5 +1,8 @@",
" package main",
" ",
" func main() {",
"-",
"+const (",
"+a = 01i",
"+b = 1.e+100i",
"+)",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "058ac07a0f3562f11831ab26625123ab5766e1e6..1197356f080a71d4044bfe3a74c502914c372b54"
}
,{
"testCaseDescription": "go-imaginary-literals-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index 25a97da..151a533 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -2,7 +2,7 @@ package main",
" ",
" func main() {",
" const (",
"-a = 01i",
"-b = 1.e+100i",
"+a = 02i",
"+b = 1.e+103i",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "1197356f080a71d4044bfe3a74c502914c372b54..e727952359239c48acd0d18cc090dd940078e0b2"
}
,{
"testCaseDescription": "go-imaginary-literals-delete-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index 151a533..25a97da 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -2,7 +2,7 @@ package main",
" ",
" func main() {",
" const (",
"-a = 02i",
"-b = 1.e+103i",
"+a = 01i",
"+b = 1.e+100i",
" )",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "e727952359239c48acd0d18cc090dd940078e0b2..6063891f4a0e4562bc0a5625b80ca5143ff5e03d"
}
,{
"testCaseDescription": "go-imaginary-literals-delete-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index 25a97da..7905807 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -1,8 +1,5 @@",
" package main",
" ",
" func main() {",
"-const (",
"-a = 01i",
"-b = 1.e+100i",
"-)",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "6063891f4a0e4562bc0a5625b80ca5143ff5e03d..decfd7181ea1998e4b5d83e450d97b36cfbeb43d"
}
,{
"testCaseDescription": "go-imaginary-literals-teardown-test",
"expectedResult": {
"changes": {
"imaginary-literals.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
6,
1
]
}
},
"summary": "Deleted the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"imaginary-literals.go"
],
"patch": [
"diff --git a/imaginary-literals.go b/imaginary-literals.go",
"index 7905807..e69de29 100644",
"--- a/imaginary-literals.go",
"+++ b/imaginary-literals.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "decfd7181ea1998e4b5d83e450d97b36cfbeb43d..7313c98bc1dadd02edefed0e5dac5b0a8d79ae27"
}]