2016-11-02 17:50:05 +03:00
|
|
|
[{
|
2016-11-02 21:37:30 +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": {
|
2016-11-11 00:19:53 +03:00
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
2016-11-22 23:10:04 +03:00
|
|
|
11
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'x(b, c...)' at line 1, column 1 - line 1, column 11"
|
2016-11-11 00:19:53 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
2016-11-22 23:10:04 +03:00
|
|
|
9
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'y(b, c,)' at line 2, column 1 - line 2, column 9"
|
2016-11-11 00:19:53 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2016-11-22 23:10:04 +03:00
|
|
|
11
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'z(b,c...,)' at line 3, column 1 - line 3, column 11"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
2016-11-22 23:10:04 +03:00
|
|
|
}
|
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",
|
|
|
|
"index e69de29..ecd7132 100644",
|
|
|
|
"--- a/call-expressions.go",
|
|
|
|
"+++ b/call-expressions.go",
|
|
|
|
"@@ -0,0 +1,3 @@",
|
|
|
|
"+x(b, c...)",
|
|
|
|
"+y(b, c,)",
|
|
|
|
"+z(b,c...,)"
|
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-22 23:10:04 +03:00
|
|
|
"shas": "b47f159a4e69c481019748b1b4451ca5480b48ac..c8763d16606cda825fb974369f9a2b519439e29e"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-call-expressions-replacement-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
|
|
|
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-22 23:10:04 +03:00
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'a(b, c...)' at line 1, column 1 - line 1, column 11"
|
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-22 23:10:04 +03:00
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'b(b, c,)' at line 2, column 1 - line 2, column 9"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"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-22 23:10:04 +03:00
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'c(b,c...,)' at line 3, column 1 - line 3, column 11"
|
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-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'x(b, c...)' at line 4, column 1 - line 4, column 11"
|
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-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'y(b, c,)' at line 5, column 1 - line 5, column 9"
|
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-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'z(b,c...,)' at line 6, column 1 - line 6, column 11"
|
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",
|
|
|
|
"index ecd7132..d979c0a 100644",
|
|
|
|
"--- a/call-expressions.go",
|
|
|
|
"+++ b/call-expressions.go",
|
|
|
|
"@@ -1,3 +1,9 @@",
|
|
|
|
"+a(b, c...)",
|
|
|
|
"+b(b, c,)",
|
|
|
|
"+c(b,c...,)",
|
|
|
|
"+x(b, c...)",
|
|
|
|
"+y(b, c,)",
|
|
|
|
"+z(b,c...,)",
|
|
|
|
" x(b, c...)",
|
|
|
|
" y(b, c,)",
|
|
|
|
" z(b,c...,)"
|
|
|
|
],
|
2016-11-02 21:37:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-22 23:10:04 +03:00
|
|
|
"shas": "c8763d16606cda825fb974369f9a2b519439e29e..efeb7a0f095a0f9412a310203ec9147cc43a093a"
|
2016-11-02 21:37:30 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-call-expressions-delete-insert-test",
|
|
|
|
"expectedResult": {
|
2016-11-22 23:10:04 +03:00
|
|
|
"changes": {},
|
|
|
|
"errors": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
1,
|
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'x(b, c...)' at line 1, column 1 - line 1, column 11"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 23:10:04 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
2,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
2,
|
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'y(b, c,)' at line 2, column 1 - line 2, column 9"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 23:10:04 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
3,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
3,
|
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'z(b,c...,)' at line 3, column 1 - line 3, column 11"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 23:10:04 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
1,
|
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'a(b, c...)' at line 1, column 1 - line 1, column 11"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 23:10:04 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
2,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
2,
|
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'b(b, c,)' at line 2, column 1 - line 2, column 9"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 23:10:04 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
3,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
3,
|
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'c(b,c...,)' at line 3, column 1 - line 3, column 11"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"call-expressions.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/call-expressions.go b/call-expressions.go",
|
|
|
|
"index d979c0a..a3950ff 100644",
|
|
|
|
"--- a/call-expressions.go",
|
|
|
|
"+++ b/call-expressions.go",
|
|
|
|
"@@ -1,6 +1,6 @@",
|
|
|
|
"-a(b, c...)",
|
|
|
|
"-b(b, c,)",
|
|
|
|
"-c(b,c...,)",
|
|
|
|
"+x(b, c...)",
|
|
|
|
"+y(b, c,)",
|
|
|
|
"+z(b,c...,)",
|
|
|
|
" x(b, c...)",
|
|
|
|
" y(b, c,)",
|
|
|
|
" z(b,c...,)"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
|
|
|
"shas": "efeb7a0f095a0f9412a310203ec9147cc43a093a..9c07ff15f6bdc008d045bbaebae934200a2a6734"
|
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-call-expressions-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {},
|
|
|
|
"errors": {
|
|
|
|
"call-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
1,
|
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'a(b, c...)' at line 1, column 1 - line 1, column 11"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
2,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
2,
|
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'b(b, c,)' at line 2, column 1 - line 2, column 9"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
3,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
3,
|
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'c(b,c...,)' at line 3, column 1 - line 3, column 11"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 23:10:04 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
1,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
1,
|
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'x(b, c...)' at line 1, column 1 - line 1, column 11"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 23:10:04 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
2,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
2,
|
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'y(b, c,)' at line 2, column 1 - line 2, column 9"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 23:10:04 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
3,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
3,
|
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'z(b,c...,)' at line 3, column 1 - line 3, column 11"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
2016-11-22 23:10:04 +03:00
|
|
|
}
|
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-11-22 23:10:04 +03:00
|
|
|
"index a3950ff..d979c0a 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/call-expressions.go",
|
|
|
|
"+++ b/call-expressions.go",
|
2016-11-22 23:10:04 +03:00
|
|
|
"@@ -1,6 +1,6 @@",
|
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...,)",
|
|
|
|
" 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-11-22 23:10:04 +03:00
|
|
|
"shas": "9c07ff15f6bdc008d045bbaebae934200a2a6734..a1710da50116f9380b25e096b698eec1b03325f6"
|
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-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": {
|
|
|
|
"delete": {
|
|
|
|
"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-22 23:10:04 +03:00
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'a(b, c...)' at line 1, column 1 - line 1, column 11"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
2,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
2,
|
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'b(b, c,)' at line 2, column 1 - line 2, column 9"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
3,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
3,
|
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'c(b,c...,)' at line 3, column 1 - line 3, column 11"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
4,
|
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'x(b, c...)' at line 4, column 1 - line 4, column 11"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
5,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
5,
|
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'y(b, c,)' at line 5, column 1 - line 5, column 9"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
6,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
6,
|
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'z(b,c...,)' at line 6, column 1 - line 6, column 11"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 23:10:04 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
4,
|
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'a(b, c...)' at line 4, column 1 - line 4, column 11"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 23:10:04 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
5,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
5,
|
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'b(b, c,)' at line 5, column 1 - line 5, column 9"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-22 23:10:04 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
6,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
6,
|
|
|
|
11
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Added the 'c(b,c...,)' at line 6, column 1 - line 6, column 11"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
2016-11-22 23:10:04 +03:00
|
|
|
}
|
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-11-22 23:10:04 +03:00
|
|
|
"index d979c0a..589914d 100644",
|
2016-11-11 00:19:53 +03:00
|
|
|
"--- a/call-expressions.go",
|
|
|
|
"+++ b/call-expressions.go",
|
2016-11-22 23:10:04 +03:00
|
|
|
"@@ -1,9 +1,6 @@",
|
|
|
|
"-a(b, c...)",
|
|
|
|
"-b(b, c,)",
|
|
|
|
"-c(b,c...,)",
|
2016-11-11 00:19:53 +03:00
|
|
|
"-x(b, c...)",
|
|
|
|
"-y(b, c,)",
|
|
|
|
"-z(b,c...,)",
|
2016-11-22 23:10:04 +03:00
|
|
|
" x(b, c...)",
|
|
|
|
" y(b, c,)",
|
|
|
|
" z(b,c...,)",
|
|
|
|
"+a(b, c...)",
|
|
|
|
"+b(b, c,)",
|
|
|
|
"+c(b,c...,)"
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-22 23:10:04 +03:00
|
|
|
"shas": "a1710da50116f9380b25e096b698eec1b03325f6..a1c6a59603e72f43ab5a830e99818da54d6fb95b"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-22 23:10:04 +03:00
|
|
|
"testCaseDescription": "go-call-expressions-delete-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": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
2016-11-22 23:10:04 +03:00
|
|
|
11
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'x(b, c...)' at line 1, column 1 - line 1, column 11"
|
2016-11-11 00:19:53 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
2016-11-22 23:10:04 +03:00
|
|
|
9
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'y(b, c,)' at line 2, column 1 - line 2, column 9"
|
2016-11-11 00:19:53 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
3,
|
|
|
|
1
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
3,
|
|
|
|
11
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'z(b,c...,)' at line 3, column 1 - line 3, column 11"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"call-expressions.go"
|
|
|
|
],
|
|
|
|
"patch": [
|
|
|
|
"diff --git a/call-expressions.go b/call-expressions.go",
|
|
|
|
"index 589914d..1dc566c 100644",
|
|
|
|
"--- a/call-expressions.go",
|
|
|
|
"+++ b/call-expressions.go",
|
|
|
|
"@@ -1,6 +1,3 @@",
|
|
|
|
"-x(b, c...)",
|
|
|
|
"-y(b, c,)",
|
|
|
|
"-z(b,c...,)",
|
|
|
|
" a(b, c...)",
|
|
|
|
" b(b, c,)",
|
|
|
|
" c(b,c...,)"
|
|
|
|
],
|
|
|
|
"gitDir": "test/corpus/repos/go",
|
|
|
|
"shas": "a1c6a59603e72f43ab5a830e99818da54d6fb95b..9293baf00488ad7785e23a8b78ab5f95342ebab3"
|
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-call-expressions-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {},
|
|
|
|
"errors": {
|
|
|
|
"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-11-22 23:10:04 +03:00
|
|
|
1,
|
|
|
|
11
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'a(b, c...)' at line 1, column 1 - line 1, column 11"
|
2016-11-11 00:19:53 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-22 23:10:04 +03:00
|
|
|
2,
|
|
|
|
1
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-22 23:10:04 +03:00
|
|
|
2,
|
|
|
|
9
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'b(b, c,)' at line 2, column 1 - line 2, column 9"
|
2016-11-11 00:19:53 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-22 23:10:04 +03:00
|
|
|
1
|
2016-11-11 00:19:53 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2016-11-22 23:10:04 +03:00
|
|
|
11
|
2016-11-11 00:19:53 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-22 23:10:04 +03:00
|
|
|
"summary": "Deleted the 'c(b,c...,)' at line 3, column 1 - line 3, column 11"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
2016-11-22 23:10:04 +03:00
|
|
|
}
|
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",
|
|
|
|
"index 1dc566c..e69de29 100644",
|
|
|
|
"--- a/call-expressions.go",
|
|
|
|
"+++ b/call-expressions.go",
|
|
|
|
"@@ -1,3 +0,0 @@",
|
|
|
|
"-a(b, c...)",
|
|
|
|
"-b(b, c,)",
|
|
|
|
"-c(b,c...,)"
|
|
|
|
],
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-22 23:10:04 +03:00
|
|
|
"shas": "9293baf00488ad7785e23a8b78ab5f95342ebab3..8cef11ced56e7aed74af10acde19377ccfe0b6af"
|
2016-11-02 17:50:05 +03:00
|
|
|
}]
|