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/increment-decrement-statements.json

377 lines
12 KiB
JSON
Raw Normal View History

2016-11-02 17:50:05 +03:00
[{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-increment-decrement-statements-setup-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"increment-decrement-statements.go": [
{
"span": {
2016-11-11 00:19:53 +03:00
"insert": {
"start": [
1,
1
],
"end": [
2016-12-02 00:03:52 +03:00
6,
2016-11-11 00:19:53 +03:00
1
]
}
2016-11-02 21:37:30 +03:00
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'main' module"
2016-11-02 21:37:30 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
2017-01-17 23:26:07 +03:00
"index e69de29b..79058077 100644",
2016-11-11 00:19:53 +03:00
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
2016-12-02 00:03:52 +03:00
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
2016-11-11 00:19:53 +03:00
],
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 23:12:54 +03:00
"shas": "7f8d4e43555f3b5d3f723b58c0fbf874612c614f..aa4d66200c9a9aa7faf6a95a5409a8ffd4adfdd3"
2016-11-02 21:37:30 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-increment-decrement-statements-insert-test",
2016-11-02 21:37:30 +03:00
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
"insert": {
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
4
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Added the 'i++' increment statement in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 21:37:30 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
5,
4
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Added the 'j--' decrement statement in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"increment-decrement-statements.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
2017-01-17 23:26:07 +03:00
"index 79058077..18bf03a2 100644",
2016-11-11 00:19:53 +03:00
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,6 @@",
" package main",
" ",
" func main() {",
"-",
2016-11-11 00:19:53 +03:00
"+i++",
"+j--",
2016-12-02 00:03:52 +03:00
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 23:12:54 +03:00
"shas": "aa4d66200c9a9aa7faf6a95a5409a8ffd4adfdd3..7486326aeb5e953caf6a177f94fe81f873dd3f82"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-increment-decrement-statements-replacement-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"increment-decrement-statements.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
"replace": [
{
"start": [
4,
2016-11-02 17:50:05 +03:00
1
],
"end": [
4,
4
2016-11-02 17:50:05 +03:00
]
},
{
"start": [
4,
2016-11-02 17:50:05 +03:00
1
],
"end": [
4,
6
2016-11-02 17:50:05 +03:00
]
}
]
},
"summary": "Replaced the 'i++' increment statement with the 'foo++' increment statement in the main function of the 'main' module"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Added the 'x++' increment statement in the main function of the 'main' module"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Deleted the 'j--' decrement statement in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"increment-decrement-statements.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
2017-01-17 23:26:07 +03:00
"index 18bf03a2..08611ad4 100644",
2016-11-11 00:19:53 +03:00
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
2016-12-02 00:03:52 +03:00
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-i++",
"-j--",
"+foo++",
"+x++",
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 23:12:54 +03:00
"shas": "7486326aeb5e953caf6a177f94fe81f873dd3f82..815af0d4d7514f7e49a17dfcfc7cc7d7e2037117"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-increment-decrement-statements-delete-replacement-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"increment-decrement-statements.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
"replace": [
{
"start": [
4,
2016-11-02 17:50:05 +03:00
1
],
"end": [
4,
6
2016-11-02 17:50:05 +03:00
]
},
{
"start": [
4,
2016-11-02 17:50:05 +03:00
1
],
"end": [
4,
4
2016-11-02 17:50:05 +03:00
]
}
]
},
"summary": "Replaced the 'foo++' increment statement with the 'i++' increment statement in the main function of the 'main' module"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Added the 'j--' decrement statement in the main function of the 'main' module"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Deleted the 'x++' increment statement in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"increment-decrement-statements.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
2017-01-17 23:26:07 +03:00
"index 08611ad4..18bf03a2 100644",
2016-11-11 00:19:53 +03:00
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
2016-12-02 00:03:52 +03:00
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
2016-11-11 00:19:53 +03:00
"-foo++",
"-x++",
2016-12-02 00:03:52 +03:00
"+i++",
"+j--",
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 23:12:54 +03:00
"shas": "815af0d4d7514f7e49a17dfcfc7cc7d7e2037117..89228c00eab271cd2f80899a63562fc9393d59dc"
2016-11-02 21:37:30 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-increment-decrement-statements-delete-insert-test",
2016-11-02 21:37:30 +03:00
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
2016-11-02 21:37:30 +03:00
"delete": {
2016-11-02 17:50:05 +03:00
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
4
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Deleted the 'i++' increment statement in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"delete": {
2016-11-02 17:50:05 +03:00
"start": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 21:37:30 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
5,
4
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Deleted the 'j--' decrement statement in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"increment-decrement-statements.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
2017-01-17 23:26:07 +03:00
"index 18bf03a2..79058077 100644",
2016-11-11 00:19:53 +03:00
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
2016-12-02 00:03:52 +03:00
"@@ -1,6 +1,5 @@",
" package main",
" ",
" func main() {",
2016-11-11 00:19:53 +03:00
"-i++",
"-j--",
2016-12-02 00:03:52 +03:00
"+",
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 23:12:54 +03:00
"shas": "89228c00eab271cd2f80899a63562fc9393d59dc..65de8108663b2ceeaa6c6e5d491ad1c4cb6dc8f6"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-increment-decrement-statements-teardown-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"increment-decrement-statements.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
2016-11-11 00:19:53 +03:00
"delete": {
"start": [
1,
1
],
"end": [
2016-12-02 00:03:52 +03:00
6,
2016-11-11 00:19:53 +03:00
1
]
}
2016-11-02 17:50:05 +03:00
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"increment-decrement-statements.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/increment-decrement-statements.go b/increment-decrement-statements.go",
2017-01-17 23:26:07 +03:00
"index 79058077..e69de29b 100644",
2016-11-11 00:19:53 +03:00
"--- a/increment-decrement-statements.go",
"+++ b/increment-decrement-statements.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 23:12:54 +03:00
"shas": "65de8108663b2ceeaa6c6e5d491ad1c4cb6dc8f6..96a2caf2b396eb1844dfd668cb913452ae09c4a6"
2016-11-02 17:50:05 +03:00
}]