2016-11-02 17:50:05 +03:00
|
|
|
[{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-var-declarations-with-no-expressions-insert-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-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
13
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:29:27 +03:00
|
|
|
"summary": "Added the 'zero' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 23:29:27 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 23:29:27 +03:00
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'one' variable"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:29:27 +03:00
|
|
|
"summary": "Added the 'two' variable"
|
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",
|
|
|
|
"index e69de29..f156385 100644",
|
|
|
|
"--- a/var-declarations-with-no-expressions.go",
|
|
|
|
"+++ b/var-declarations-with-no-expressions.go",
|
|
|
|
"@@ -0,0 +1,2 @@",
|
|
|
|
"+var zero int",
|
|
|
|
"+var one, two uint64"
|
|
|
|
],
|
2016-11-02 21:37:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-15 03:12:17 +03:00
|
|
|
"shas": "7eca4d811d912df0bd9d2b432cc34641fcb7519c..400799349efd25fb79f48b7bbc36023e050cc2d2"
|
2016-11-02 21:37:30 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-var-declarations-with-no-expressions-replacement-insert-test",
|
|
|
|
"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 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
10
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:29:27 +03:00
|
|
|
"summary": "Added the 'a' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 23:29:27 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 23:29:27 +03:00
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'b' variable"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
16
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:29:27 +03:00
|
|
|
"summary": "Added the 'c' variable"
|
2016-11-02 21:37:30 +03:00
|
|
|
},
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:29:27 +03:00
|
|
|
"summary": "Added the 'zero' variable"
|
2016-11-02 21:37:30 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-11-02 23:29:27 +03:00
|
|
|
"summary": "Added the 'one' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 23:29:27 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 23:29:27 +03:00
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'two' variable"
|
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",
|
|
|
|
"index f156385..f696db9 100644",
|
|
|
|
"--- a/var-declarations-with-no-expressions.go",
|
|
|
|
"+++ b/var-declarations-with-no-expressions.go",
|
|
|
|
"@@ -1,2 +1,6 @@",
|
|
|
|
"+var a int",
|
|
|
|
"+var b, c uint64",
|
|
|
|
"+var zero int",
|
|
|
|
"+var one, two uint64",
|
|
|
|
" var zero int",
|
|
|
|
" var one, two uint64"
|
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-15 03:12:17 +03:00
|
|
|
"shas": "400799349efd25fb79f48b7bbc36023e050cc2d2..adfeb81fabd9bd315f86791bcd94344de6e24120"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-var-declarations-with-no-expressions-delete-insert-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-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Replaced the 'a' identifier with the 'zero' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
8
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Replaced the 'b' identifier with the 'one' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
8
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 17:50:05 +03:00
|
|
|
9
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
10
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
13
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Replaced the 'c' identifier with the 'two' identifier"
|
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",
|
|
|
|
"index f696db9..e5e3183 100644",
|
|
|
|
"--- a/var-declarations-with-no-expressions.go",
|
|
|
|
"+++ b/var-declarations-with-no-expressions.go",
|
|
|
|
"@@ -1,5 +1,5 @@",
|
|
|
|
"-var a int",
|
|
|
|
"-var b, c uint64",
|
|
|
|
"+var zero int",
|
|
|
|
"+var one, two uint64",
|
|
|
|
" var zero int",
|
|
|
|
" var one, two uint64",
|
|
|
|
" var zero int"
|
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-15 03:12:17 +03:00
|
|
|
"shas": "adfeb81fabd9bd315f86791bcd94344de6e24120..2b41985dc78bc94d65a90dd0b9b7bc0ddc02a48b"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +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-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Replaced the 'zero' identifier with the 'a' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
8
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Replaced the 'one' identifier with the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
10
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
13
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
8
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 17:50:05 +03:00
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Replaced the 'two' identifier with the 'c' identifier"
|
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",
|
|
|
|
"index e5e3183..f696db9 100644",
|
|
|
|
"--- a/var-declarations-with-no-expressions.go",
|
|
|
|
"+++ b/var-declarations-with-no-expressions.go",
|
|
|
|
"@@ -1,5 +1,5 @@",
|
|
|
|
"-var zero int",
|
|
|
|
"-var one, two uint64",
|
|
|
|
"+var a int",
|
|
|
|
"+var b, c uint64",
|
|
|
|
" var zero int",
|
|
|
|
" var one, two uint64",
|
|
|
|
" var zero int"
|
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-15 03:12:17 +03:00
|
|
|
"shas": "2b41985dc78bc94d65a90dd0b9b7bc0ddc02a48b..ae5681370714028c4e197f18c18c5275321d185f"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-var-declarations-with-no-expressions-delete-replacement-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-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
10
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:29:27 +03:00
|
|
|
"summary": "Deleted the 'a' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 23:29:27 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 23:29:27 +03:00
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'b' variable"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
16
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:29:27 +03:00
|
|
|
"summary": "Deleted the 'c' variable"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
3,
|
2016-11-02 17:50:05 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
13
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:29:27 +03:00
|
|
|
"summary": "Deleted the 'zero' variable"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
20
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:29:27 +03:00
|
|
|
"summary": "Deleted the 'one' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 23:29:27 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 23:29:27 +03:00
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'two' variable"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
10
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:29:27 +03:00
|
|
|
"summary": "Added the 'a' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 23:29:27 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 23:29:27 +03:00
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'b' variable"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 17:50:05 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
16
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:29:27 +03:00
|
|
|
"summary": "Added the 'c' variable"
|
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",
|
|
|
|
"index f696db9..137ee10 100644",
|
|
|
|
"--- a/var-declarations-with-no-expressions.go",
|
|
|
|
"+++ b/var-declarations-with-no-expressions.go",
|
|
|
|
"@@ -1,6 +1,4 @@",
|
|
|
|
"-var a int",
|
|
|
|
"-var b, c uint64",
|
|
|
|
"-var zero int",
|
|
|
|
"-var one, two uint64",
|
|
|
|
" var zero int",
|
|
|
|
" var one, two uint64",
|
|
|
|
"+var a int",
|
|
|
|
"+var b, c uint64"
|
|
|
|
],
|
2016-11-02 21:37:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-15 03:12:17 +03:00
|
|
|
"shas": "ae5681370714028c4e197f18c18c5275321d185f..d3e9775243f82f41130f72bd20dc7b806ba200a9"
|
2016-11-02 21:37:30 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-var-declarations-with-no-expressions-delete-test",
|
|
|
|
"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-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
13
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:29:27 +03:00
|
|
|
"summary": "Deleted the 'zero' variable"
|
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-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
20
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:29:27 +03:00
|
|
|
"summary": "Deleted the 'one' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 23:29:27 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 23:29:27 +03:00
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'two' variable"
|
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",
|
|
|
|
"index 137ee10..443ec9e 100644",
|
|
|
|
"--- a/var-declarations-with-no-expressions.go",
|
|
|
|
"+++ b/var-declarations-with-no-expressions.go",
|
|
|
|
"@@ -1,4 +1,2 @@",
|
|
|
|
"-var zero int",
|
|
|
|
"-var one, two uint64",
|
|
|
|
" var a int",
|
|
|
|
" var b, c uint64"
|
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-15 03:12:17 +03:00
|
|
|
"shas": "d3e9775243f82f41130f72bd20dc7b806ba200a9..6e94a11d64083910c800363edb88a9ee0680c37c"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-var-declarations-with-no-expressions-delete-rest-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-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
10
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:29:27 +03:00
|
|
|
"summary": "Deleted the 'a' variable"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 21:37:30 +03:00
|
|
|
16
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:29:27 +03:00
|
|
|
"summary": "Deleted the 'b' variable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 23:29:27 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
2,
|
2016-11-02 23:29:27 +03:00
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' variable"
|
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",
|
|
|
|
"index 443ec9e..e69de29 100644",
|
|
|
|
"--- a/var-declarations-with-no-expressions.go",
|
|
|
|
"+++ b/var-declarations-with-no-expressions.go",
|
|
|
|
"@@ -1,2 +0,0 @@",
|
|
|
|
"-var a int",
|
|
|
|
"-var b, c uint64"
|
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-15 03:12:17 +03:00
|
|
|
"shas": "6e94a11d64083910c800363edb88a9ee0680c37c..96f8228635d5aa31ec4bb2a39ffe29e5d20a9025"
|
2016-11-02 17:50:05 +03:00
|
|
|
}]
|