1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/go/increment-decrement-statements.json
2017-01-10 16:21:35 -05:00

317 lines
9.9 KiB
JSON

[{
"testCaseDescription": "go-increment-decrement-statements-setup-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
6,
1
]
}
},
"summary": "Added the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
"index e69de29..7905807 100644",
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
],
"gitDir": "test/corpus/repos/go",
"shas": "c642851bb55b21e764a7740d3c8c79f0e3781691..91c90e7766d5b852d1aaf6f9306a5a357f109433"
}
,{
"testCaseDescription": "go-increment-decrement-statements-insert-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'i' identifier in the main function of the 'main' module"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'j' identifier in the main function of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
"index 7905807..18bf03a 100644",
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
"@@ -1,5 +1,6 @@",
" package main",
" ",
" func main() {",
"-",
"+i++",
"+j--",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "91c90e7766d5b852d1aaf6f9306a5a357f109433..a6966fa8a5778da29fe9cfbd20346cb0fde84ca5"
}
,{
"testCaseDescription": "go-increment-decrement-statements-replacement-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
6,
2
]
},
{
"start": [
3,
1
],
"end": [
6,
2
]
}
]
},
"summary": "Replaced the 'main' function with the 'main' function in the main module"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
"index 18bf03a..08611ad 100644",
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-i++",
"-j--",
"+foo++",
"+x++",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "a6966fa8a5778da29fe9cfbd20346cb0fde84ca5..0535dd90a620fa740c1de2c8b375cab0477525c5"
}
,{
"testCaseDescription": "go-increment-decrement-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
6,
2
]
},
{
"start": [
3,
1
],
"end": [
6,
2
]
}
]
},
"summary": "Replaced the 'main' function with the 'main' function in the main module"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
"index 08611ad..18bf03a 100644",
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-foo++",
"-x++",
"+i++",
"+j--",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "0535dd90a620fa740c1de2c8b375cab0477525c5..19451984841fa0caa0f4041879710d20279beeb8"
}
,{
"testCaseDescription": "go-increment-decrement-statements-delete-insert-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'i' identifier in the main function of the 'main' module"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'j' identifier in the main function of the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
"index 18bf03a..7905807 100644",
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
"@@ -1,6 +1,5 @@",
" package main",
" ",
" func main() {",
"-i++",
"-j--",
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
"shas": "19451984841fa0caa0f4041879710d20279beeb8..f09ec27139b39b34ea7ae37b51174c59506f9729"
}
,{
"testCaseDescription": "go-increment-decrement-statements-teardown-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
6,
1
]
}
},
"summary": "Deleted the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
"index 7905807..e69de29 100644",
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
],
"gitDir": "test/corpus/repos/go",
"shas": "f09ec27139b39b34ea7ae37b51174c59506f9729..c3c4336e724235623c205a4822740a12dffae4b3"
}]