2016-11-02 04:36:43 +03:00
|
|
|
[{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-variadic-function-declarations-setup-test",
|
2016-11-02 04:36:43 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"variadic-function-declarations.go": [
|
2016-11-02 04:36:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 04:36:43 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-02 04:36:43 +03:00
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'main' module"
|
2016-11-02 04:36:43 +03:00
|
|
|
}
|
|
|
|
]
|
2016-11-02 21:37:30 +03:00
|
|
|
},
|
|
|
|
"errors": {}
|
2016-11-02 04:36:43 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"variadic-function-declarations.go"
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/variadic-function-declarations.go b/variadic-function-declarations.go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"index e69de29..7905807 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/variadic-function-declarations.go",
|
|
|
|
"+++ b/variadic-function-declarations.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 04:36:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"shas": "7c2e8f39e68df4ae5a362bc9e19f3b476c0e524f..38d579cf20a517896463568db7b89cc8d7321afc"
|
2016-11-02 04:36:43 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-variadic-function-declarations-insert-test",
|
2016-11-02 04:36:43 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"variadic-function-declarations.go": [
|
2016-11-02 04:36:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
|
|
|
20
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
22
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the '{}' block in the main function of the 'main' module"
|
2016-11-02 04:36:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
6
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
8
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'f2' identifier in the main function of the 'main' module"
|
2016-11-02 04:36:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2017-01-11 00:08:59 +03:00
|
|
|
9
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
15
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-11 00:08:59 +03:00
|
|
|
"summary": "Added the '...int' parameter declaration in the main function of the 'main' module"
|
2016-11-02 04:36:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
17
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
19
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the '{}' block in the main function of the 'main' module"
|
2016-11-02 21:37:30 +03:00
|
|
|
},
|
2016-11-02 04:36:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-02 04:36:43 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
|
|
|
23
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'f3' function in the main function of the 'main' module"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {
|
|
|
|
"variadic-function-declarations.go": [
|
2016-11-02 04:36:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 04:36:43 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
|
|
|
19
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-06 01:08:28 +03:00
|
|
|
"summary": "Added 'func f1(a ...*int)' at line 4, column 1 - line 4, column 19 in the main function of the 'main' module"
|
2016-11-02 04:36:43 +03:00
|
|
|
}
|
|
|
|
]
|
2016-12-02 00:03:52 +03:00
|
|
|
}
|
2016-11-02 04:36:43 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"variadic-function-declarations.go"
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/variadic-function-declarations.go b/variadic-function-declarations.go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"index 7905807..7447883 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/variadic-function-declarations.go",
|
|
|
|
"+++ b/variadic-function-declarations.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,5 +1,7 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
|
|
|
"-",
|
2016-11-11 00:19:53 +03:00
|
|
|
"+func f1(a ...*int) {}",
|
|
|
|
"+func f2(...int) {}",
|
|
|
|
"+func f3(a, ...bool) {}",
|
2016-12-02 00:03:52 +03:00
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 04:36:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"shas": "38d579cf20a517896463568db7b89cc8d7321afc..2c72280c7e6bd60114bc5fc00129b9f5dbe5eb5f"
|
2016-11-02 04:36:43 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-variadic-function-declarations-replacement-test",
|
2016-11-02 04:36:43 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"variadic-function-declarations.go": [
|
2016-11-02 04:36:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
8
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
8
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Replaced the 'f1' identifier with the 'g1' identifier in the main function of the 'main' module"
|
2016-11-02 04:36:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
8
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
8
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Replaced the 'f2' identifier with the 'g2' identifier in the main function of the 'main' module"
|
2016-11-02 04:36:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-02 21:37:30 +03:00
|
|
|
8
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-02 21:37:30 +03:00
|
|
|
8
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Replaced the 'f3' identifier with the 'g3' identifier in the g3 function of the 'main' function"
|
2016-11-02 04:36:43 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"variadic-function-declarations.go"
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/variadic-function-declarations.go b/variadic-function-declarations.go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"index 7447883..42ee738 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/variadic-function-declarations.go",
|
|
|
|
"+++ b/variadic-function-declarations.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,7 +1,7 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
|
|
|
"-func f1(a ...*int) {}",
|
|
|
|
"-func f2(...int) {}",
|
|
|
|
"-func f3(a, ...bool) {}",
|
|
|
|
"+func g1(a ...*int) {}",
|
|
|
|
"+func g2(...int) {}",
|
|
|
|
"+func g3(a, ...bool) {}",
|
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 04:36:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"shas": "2c72280c7e6bd60114bc5fc00129b9f5dbe5eb5f..75a229f0366630fe755f01f3352f1e7b83b1c725"
|
2016-11-02 04:36:43 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-variadic-function-declarations-delete-replacement-test",
|
2016-11-02 04:36:43 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"variadic-function-declarations.go": [
|
2016-11-02 04:36:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
8
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
8
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Replaced the 'g1' identifier with the 'f1' identifier in the main function of the 'main' module"
|
2016-11-02 04:36:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
8
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
8
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Replaced the 'g2' identifier with the 'f2' identifier in the main function of the 'main' module"
|
2016-11-02 04:36:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-02 21:37:30 +03:00
|
|
|
8
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-02 21:37:30 +03:00
|
|
|
8
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Replaced the 'g3' identifier with the 'f3' identifier in the f3 function of the 'main' function"
|
2016-11-02 04:36:43 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"variadic-function-declarations.go"
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/variadic-function-declarations.go b/variadic-function-declarations.go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"index 42ee738..7447883 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/variadic-function-declarations.go",
|
|
|
|
"+++ b/variadic-function-declarations.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,7 +1,7 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
|
|
|
"-func g1(a ...*int) {}",
|
|
|
|
"-func g2(...int) {}",
|
|
|
|
"-func g3(a, ...bool) {}",
|
|
|
|
"+func f1(a ...*int) {}",
|
|
|
|
"+func f2(...int) {}",
|
|
|
|
"+func f3(a, ...bool) {}",
|
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 04:36:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"shas": "75a229f0366630fe755f01f3352f1e7b83b1c725..a32c9e661e5afb5c437ae1386ac35a1e4e5f3273"
|
2016-11-02 04:36:43 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-variadic-function-declarations-delete-insert-test",
|
2016-11-02 04:36:43 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"variadic-function-declarations.go": [
|
2016-11-02 04:36:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-12-02 00:03:52 +03:00
|
|
|
20
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
22
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the '{}' block in the main function of the 'main' module"
|
2016-11-02 04:36:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
2016-11-02 04:36:43 +03:00
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
5,
|
2016-12-02 00:03:52 +03:00
|
|
|
6
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
5,
|
2016-12-02 00:03:52 +03:00
|
|
|
8
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'f2' identifier in the main function of the 'main' module"
|
2016-11-02 04:36:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
2016-11-02 04:36:43 +03:00
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2017-01-11 00:08:59 +03:00
|
|
|
9
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
|
|
|
15
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-11 00:08:59 +03:00
|
|
|
"summary": "Deleted the '...int' parameter declaration in the main function of the 'main' module"
|
2016-11-02 04:36:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"delete": {
|
2016-11-02 04:36:43 +03:00
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
5,
|
2016-12-02 00:03:52 +03:00
|
|
|
17
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
19
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the '{}' block in the main function of the 'main' module"
|
2016-11-02 04:36:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"delete": {
|
2016-11-02 04:36:43 +03:00
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
6,
|
2016-11-02 04:36:43 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-11 00:19:53 +03:00
|
|
|
6,
|
2016-11-02 21:37:30 +03:00
|
|
|
23
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'f3' function in the main function of the 'main' module"
|
2016-11-02 04:36:43 +03:00
|
|
|
}
|
|
|
|
]
|
2016-11-02 21:37:30 +03:00
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"errors": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"variadic-function-declarations.go": [
|
2016-11-02 04:36:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 04:36:43 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
19
|
2016-11-02 04:36:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2017-01-06 01:08:28 +03:00
|
|
|
"summary": "Deleted 'func f1(a ...*int)' at line 4, column 1 - line 4, column 19 in the main function of the 'main' module"
|
2016-11-02 04:36:43 +03:00
|
|
|
}
|
|
|
|
]
|
2016-12-02 00:03:52 +03:00
|
|
|
}
|
2016-11-02 04:36:43 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"variadic-function-declarations.go"
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/variadic-function-declarations.go b/variadic-function-declarations.go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"index 7447883..7905807 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/variadic-function-declarations.go",
|
|
|
|
"+++ b/variadic-function-declarations.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,7 +1,5 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-11 00:19:53 +03:00
|
|
|
"-func f1(a ...*int) {}",
|
|
|
|
"-func f2(...int) {}",
|
|
|
|
"-func f3(a, ...bool) {}",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+",
|
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 04:36:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"shas": "a32c9e661e5afb5c437ae1386ac35a1e4e5f3273..7d206d848e1cc05b13f0d6e10947c3a12b353f76"
|
2016-11-02 04:36:43 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-variadic-function-declarations-teardown-test",
|
2016-11-02 04:36:43 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"variadic-function-declarations.go": [
|
2016-11-02 04:36:43 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
1,
|
2016-11-02 04:36:43 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-02 04:36:43 +03:00
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'main' module"
|
2016-11-02 04:36:43 +03:00
|
|
|
}
|
|
|
|
]
|
2016-11-02 21:37:30 +03:00
|
|
|
},
|
|
|
|
"errors": {}
|
2016-11-02 04:36:43 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"variadic-function-declarations.go"
|
2016-11-02 04:36:43 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/variadic-function-declarations.go b/variadic-function-declarations.go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"index 7905807..e69de29 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/variadic-function-declarations.go",
|
|
|
|
"+++ b/variadic-function-declarations.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 04:36:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2017-01-12 02:28:58 +03:00
|
|
|
"shas": "7d206d848e1cc05b13f0d6e10947c3a12b353f76..a5baa11113f4c2c8c2339966a5181d4cf9c7968e"
|
2016-11-02 04:36:43 +03:00
|
|
|
}]
|