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-07 23:41:28 +03:00
"shas": "9fb0684b7bb7fda2c88d6ed343f225a1fd288943..7b32563b9174f907368c799d1cc5803f7cbcbd5b"
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-07 23:41:28 +03:00
"shas": "7b32563b9174f907368c799d1cc5803f7cbcbd5b..7b4652f02c7c3f647a728e83f5da83c8fbfca906"
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-07 23:41:28 +03:00
"shas": "7b4652f02c7c3f647a728e83f5da83c8fbfca906..ab2723c0b47bbfe82319ed4a63d1dccb2747123a"
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-07 23:41:28 +03:00
"shas": "ab2723c0b47bbfe82319ed4a63d1dccb2747123a..f3371e2517c4e2b6d33160d5e3cfc67dffa65f01"
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-07 23:41:28 +03:00
"shas": "f3371e2517c4e2b6d33160d5e3cfc67dffa65f01..2c1295254a0540527746e7f6b490b9ed7b866802"
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-07 23:41:28 +03:00
"shas": "2c1295254a0540527746e7f6b490b9ed7b866802..13001c71f5bd6f01f36c4ae50245b1e458c5fc68"
2016-11-02 17:50:05 +03:00
}]