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/var-declarations-with-no-expressions.json

455 lines
15 KiB
JSON
Raw Normal View History

2016-11-02 17:50:05 +03:00
[{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-var-declarations-with-no-expressions-setup-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
2016-11-02 23:29:27 +03:00
"changes": {
2016-11-02 21:37:30 +03:00
"var-declarations-with-no-expressions.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-12-02 00:03:52 +03:00
6,
2016-11-02 21:37:30 +03:00
1
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'main' module"
2016-11-02 21:37:30 +03:00
}
]
2016-11-02 23:29:27 +03:00
},
"errors": {}
2016-11-02 21:37:30 +03:00
},
"filePaths": [
"var-declarations-with-no-expressions.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/var-declarations-with-no-expressions.go b/var-declarations-with-no-expressions.go",
2016-12-02 00:03:52 +03:00
"index e69de29..7905807 100644",
2016-11-11 00:19:53 +03:00
"--- a/var-declarations-with-no-expressions.go",
"+++ b/var-declarations-with-no-expressions.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",
2016-12-08 00:12:58 +03:00
"shas": "00e135a1a8e4cd0adb7fc184c32c5ed74b72d0cb..9f56348fca24b6f15987f5b872b7d46405bf8b40"
2016-11-02 21:37:30 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-var-declarations-with-no-expressions-insert-test",
2016-11-02 21:37:30 +03:00
"expectedResult": {
2016-11-02 23:29:27 +03:00
"changes": {
2016-11-02 21:37:30 +03:00
"var-declarations-with-no-expressions.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
],
"end": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
13
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'zero' variable in the main function of the 'main' module"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"insert": {
"start": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 21:37:30 +03:00
1
],
"end": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 21:37:30 +03:00
20
]
}
2016-11-02 17:50:05 +03:00
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'one' variable in the main function of the 'main' module"
2016-11-02 23:29:27 +03:00
},
{
"span": {
"insert": {
"start": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 23:29:27 +03:00
1
],
"end": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 23:29:27 +03:00
20
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'two' variable in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
2016-11-02 23:29:27 +03:00
},
"errors": {}
2016-11-02 17:50:05 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"var-declarations-with-no-expressions.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/var-declarations-with-no-expressions.go b/var-declarations-with-no-expressions.go",
2016-12-02 00:03:52 +03:00
"index 7905807..fcdc312 100644",
2016-11-11 00:19:53 +03:00
"--- a/var-declarations-with-no-expressions.go",
"+++ b/var-declarations-with-no-expressions.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
"+var zero int",
"+var one, two uint64",
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",
2016-12-08 00:12:58 +03:00
"shas": "9f56348fca24b6f15987f5b872b7d46405bf8b40..c298363bb8f4eddbe482638ec1e2bdedfe173d63"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-var-declarations-with-no-expressions-replacement-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"var-declarations-with-no-expressions.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
5
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
9
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
5
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
6
2016-11-02 17:50:05 +03:00
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'zero' identifier with the 'a' identifier in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 21:37:30 +03:00
5
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
5,
8
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
5
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
5,
6
2016-11-02 17:50:05 +03:00
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'one' identifier with the 'b' identifier in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
5,
10
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
5,
13
2016-11-02 17:50:05 +03:00
]
},
{
"start": [
2016-12-02 00:03:52 +03:00
5,
8
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
5,
9
2016-11-02 17:50:05 +03:00
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'two' identifier with the 'c' identifier 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
"var-declarations-with-no-expressions.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/var-declarations-with-no-expressions.go b/var-declarations-with-no-expressions.go",
2016-12-02 00:03:52 +03:00
"index fcdc312..8aab74f 100644",
2016-11-11 00:19:53 +03:00
"--- a/var-declarations-with-no-expressions.go",
"+++ b/var-declarations-with-no-expressions.go",
2016-12-02 00:03:52 +03:00
"@@ -1,6 +1,6 @@",
" package main",
" ",
" func main() {",
"-var zero int",
"-var one, two uint64",
"+var a int",
"+var b, c uint64",
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-12-08 00:12:58 +03:00
"shas": "c298363bb8f4eddbe482638ec1e2bdedfe173d63..bcf6ce676fcbd46c397bc0aec66d7a681e621a94"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-var-declarations-with-no-expressions-delete-replacement-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"var-declarations-with-no-expressions.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
4,
2016-11-02 21:37:30 +03:00
5
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
6
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
5
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
4,
9
2016-11-02 17:50:05 +03:00
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'a' identifier with the 'zero' identifier in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 21:37:30 +03:00
5
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
5,
6
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
5
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
5,
8
2016-11-02 17:50:05 +03:00
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'b' identifier with the 'one' identifier in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-12-02 00:03:52 +03:00
5,
8
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
5,
9
2016-11-02 17:50:05 +03:00
]
},
{
"start": [
2016-12-02 00:03:52 +03:00
5,
10
2016-11-02 17:50:05 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
5,
13
2016-11-02 17:50:05 +03:00
]
}
]
},
2016-12-02 00:03:52 +03:00
"summary": "Replaced the 'c' identifier with the 'two' identifier 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
"var-declarations-with-no-expressions.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/var-declarations-with-no-expressions.go b/var-declarations-with-no-expressions.go",
2016-12-02 00:03:52 +03:00
"index 8aab74f..fcdc312 100644",
2016-11-11 00:19:53 +03:00
"--- a/var-declarations-with-no-expressions.go",
"+++ b/var-declarations-with-no-expressions.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
"-var a int",
"-var b, c uint64",
2016-12-02 00:03:52 +03:00
"+var zero int",
"+var one, two uint64",
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-12-08 00:12:58 +03:00
"shas": "bcf6ce676fcbd46c397bc0aec66d7a681e621a94..f8458d86d30626ae6c51191441458398e92c1e93"
2016-11-02 21:37:30 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-var-declarations-with-no-expressions-delete-insert-test",
2016-11-02 21:37:30 +03:00
"expectedResult": {
2016-11-02 23:29:27 +03:00
"changes": {
2016-11-02 21:37:30 +03:00
"var-declarations-with-no-expressions.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,
2016-11-02 21:37:30 +03:00
13
2016-11-02 17:50:05 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'zero' variable 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,
2016-11-02 21:37:30 +03:00
20
2016-11-02 17:50:05 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'one' variable in the main function of the 'main' module"
2016-11-02 23:29:27 +03:00
},
{
"span": {
"delete": {
"start": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 23:29:27 +03:00
1
],
"end": [
2016-12-02 00:03:52 +03:00
5,
2016-11-02 23:29:27 +03:00
20
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'two' variable in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
2016-11-02 23:29:27 +03:00
},
"errors": {}
2016-11-02 17:50:05 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"var-declarations-with-no-expressions.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/var-declarations-with-no-expressions.go b/var-declarations-with-no-expressions.go",
2016-12-02 00:03:52 +03:00
"index fcdc312..7905807 100644",
2016-11-11 00:19:53 +03:00
"--- a/var-declarations-with-no-expressions.go",
"+++ b/var-declarations-with-no-expressions.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
"-var zero int",
"-var one, two uint64",
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",
2016-12-08 00:12:58 +03:00
"shas": "f8458d86d30626ae6c51191441458398e92c1e93..875b003933e61d808540edcaa178de2d81414576"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-var-declarations-with-no-expressions-teardown-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
2016-11-02 23:29:27 +03:00
"changes": {
2016-11-02 21:37:30 +03:00
"var-declarations-with-no-expressions.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-12-02 00:03:52 +03:00
6,
2016-11-02 21:37:30 +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
}
]
2016-11-02 23:29:27 +03:00
},
"errors": {}
2016-11-02 17:50:05 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"var-declarations-with-no-expressions.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/var-declarations-with-no-expressions.go b/var-declarations-with-no-expressions.go",
2016-12-02 00:03:52 +03:00
"index 7905807..e69de29 100644",
2016-11-11 00:19:53 +03:00
"--- a/var-declarations-with-no-expressions.go",
"+++ b/var-declarations-with-no-expressions.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",
2016-12-08 00:12:58 +03:00
"shas": "875b003933e61d808540edcaa178de2d81414576..5f7d4d88eae70a1a14e1fad28ebb852095ef2075"
2016-11-02 17:50:05 +03:00
}]