2016-11-02 17:50:05 +03:00
|
|
|
[{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-call-expressions-setup-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"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-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
2016-12-02 00:03:52 +03:00
|
|
|
},
|
|
|
|
"errors": {}
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/call-expressions.go b/call-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index e69de29..7905807 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/call-expressions.go",
|
|
|
|
"+++ b/call-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 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"shas": "85cf38beee139dd151b7dd8f50060f85e916fd8d..373a37fa604f6d9ae5e456dbf00a0a7efcc5bdbf"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-call-expressions-insert-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
2016-11-22 23:10:04 +03:00
|
|
|
"changes": {},
|
|
|
|
"errors": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"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-22 23:10:04 +03:00
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'x(b, c...)' at line 4, column 1 - line 4, column 11 in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
5,
|
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
|
|
|
5,
|
2016-11-22 23:10:04 +03:00
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'y(b, c,)' at line 5, column 1 - line 5, column 9 in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-11 00:19:53 +03:00
|
|
|
6,
|
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
|
|
|
6,
|
2016-11-22 23:10:04 +03:00
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Added the 'z(b,c...,)' at line 6, column 1 - line 6, column 11 in the main function of the 'main' module"
|
2016-11-02 21:37:30 +03:00
|
|
|
}
|
|
|
|
]
|
2016-11-22 23:10:04 +03:00
|
|
|
}
|
2016-11-02 21:37:30 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"call-expressions.go"
|
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/call-expressions.go b/call-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 7905807..72918e5 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/call-expressions.go",
|
|
|
|
"+++ b/call-expressions.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
|
|
|
"+x(b, c...)",
|
|
|
|
"+y(b, c,)",
|
|
|
|
"+z(b,c...,)",
|
2016-12-02 00:03:52 +03:00
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 21:37:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"shas": "373a37fa604f6d9ae5e456dbf00a0a7efcc5bdbf..a8b28a7d498c7c0c0e0a3956bf0e46b551ef3014"
|
2016-11-22 23:10:04 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-call-expressions-replacement-test",
|
|
|
|
"expectedResult": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"changes": {
|
2016-11-22 23:10:04 +03:00
|
|
|
"call-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'x' identifier with the 'a' identifier in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'y' identifier with the 'b' identifier in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'z' identifier with the 'c' identifier in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
2016-12-02 00:03:52 +03:00
|
|
|
},
|
|
|
|
"errors": {}
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/call-expressions.go b/call-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 72918e5..2d5e765 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/call-expressions.go",
|
|
|
|
"+++ b/call-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,7 +1,7 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-11 00:19:53 +03:00
|
|
|
"-x(b, c...)",
|
|
|
|
"-y(b, c,)",
|
|
|
|
"-z(b,c...,)",
|
|
|
|
"+a(b, c...)",
|
|
|
|
"+b(b, c,)",
|
2016-11-22 23:10:04 +03:00
|
|
|
"+c(b,c...,)",
|
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-02 00:03:52 +03:00
|
|
|
"shas": "a8b28a7d498c7c0c0e0a3956bf0e46b551ef3014..a39725c7f6c1f0f0609c5a1e4c9e924406c2805b"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-22 23:10:04 +03:00
|
|
|
"testCaseDescription": "go-call-expressions-delete-replacement-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'a' identifier with the 'x' identifier in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'b' identifier with the 'y' identifier in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'c' identifier with the 'z' identifier in the main function of the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
2016-12-02 00:03:52 +03:00
|
|
|
},
|
|
|
|
"errors": {}
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/call-expressions.go b/call-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 2d5e765..72918e5 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/call-expressions.go",
|
|
|
|
"+++ b/call-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,7 +1,7 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-22 23:10:04 +03:00
|
|
|
"-a(b, c...)",
|
|
|
|
"-b(b, c,)",
|
|
|
|
"-c(b,c...,)",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+x(b, c...)",
|
|
|
|
"+y(b, c,)",
|
|
|
|
"+z(b,c...,)",
|
|
|
|
" }"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"shas": "a39725c7f6c1f0f0609c5a1e4c9e924406c2805b..f58a334ed406c4ad6ca9d4b5607a8ff7a3abab58"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-call-expressions-delete-insert-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
2016-11-22 23:10:04 +03:00
|
|
|
"changes": {},
|
|
|
|
"errors": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-11 00:19:53 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
4,
|
2016-11-22 23:10:04 +03:00
|
|
|
11
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'x(b, c...)' at line 4, column 1 - line 4, column 11 in the main function of the 'main' module"
|
2016-11-11 00:19:53 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-11 00:19:53 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
5,
|
2016-11-22 23:10:04 +03:00
|
|
|
9
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'y(b, c,)' at line 5, column 1 - line 5, column 9 in the main function of the 'main' module"
|
2016-11-11 00:19:53 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-22 23:10:04 +03:00
|
|
|
1
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-22 23:10:04 +03:00
|
|
|
11
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'z(b,c...,)' at line 6, column 1 - line 6, column 11 in the main function of the 'main' module"
|
2016-11-22 23:10:04 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"call-expressions.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/call-expressions.go b/call-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 72918e5..7905807 100644",
|
2016-11-22 23:10:04 +03:00
|
|
|
"--- a/call-expressions.go",
|
|
|
|
"+++ b/call-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"@@ -1,7 +1,5 @@",
|
|
|
|
" package main",
|
|
|
|
" ",
|
|
|
|
" func main() {",
|
2016-11-22 23:10:04 +03:00
|
|
|
"-x(b, c...)",
|
|
|
|
"-y(b, c,)",
|
|
|
|
"-z(b,c...,)",
|
2016-12-02 00:03:52 +03:00
|
|
|
"+",
|
|
|
|
" }"
|
2016-11-22 23:10:04 +03:00
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"shas": "f58a334ed406c4ad6ca9d4b5607a8ff7a3abab58..d7e7d473a4848c29e5676fc81be1ca31e677afd6"
|
2016-11-22 23:10:04 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-12-02 00:03:52 +03:00
|
|
|
"testCaseDescription": "go-call-expressions-teardown-test",
|
2016-11-22 23:10:04 +03:00
|
|
|
"expectedResult": {
|
2016-12-02 00:03:52 +03:00
|
|
|
"changes": {
|
2016-11-22 23:10:04 +03:00
|
|
|
"call-expressions.go": [
|
2016-11-11 00:19:53 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
1,
|
2016-11-11 00:19:53 +03:00
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-12-02 00:03:52 +03:00
|
|
|
6,
|
2016-11-22 23:10:04 +03:00
|
|
|
1
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-12-02 00:03:52 +03:00
|
|
|
"summary": "Deleted the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
2016-12-02 00:03:52 +03:00
|
|
|
},
|
|
|
|
"errors": {}
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-11 00:19:53 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/call-expressions.go b/call-expressions.go",
|
2016-12-02 00:03:52 +03:00
|
|
|
"index 7905807..e69de29 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/call-expressions.go",
|
|
|
|
"+++ b/call-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-02 00:03:52 +03:00
|
|
|
"shas": "d7e7d473a4848c29e5676fc81be1ca31e677afd6..a56878818f64edc11a87fbd108cfc010fc9bad79"
|
2016-11-02 17:50:05 +03:00
|
|
|
}]
|