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/call-expressions.json

1826 lines
57 KiB
JSON
Raw Normal View History

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": {
"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": [
1,
2
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
1,
3
],
"end": [
1,
4
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
1,
6
],
"end": [
1,
7
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
2
]
}
},
"summary": "Added the 'y' identifier"
},
{
"span": {
"insert": {
"start": [
2,
3
],
"end": [
2,
4
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
2,
6
],
"end": [
2,
7
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Added the 'z' identifier"
},
{
"span": {
"insert": {
"start": [
3,
3
],
"end": [
3,
4
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
3,
5
],
"end": [
3,
6
]
}
},
"summary": "Added the 'c' identifier"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"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 21:51:11 +03:00
"shas": "3769ea1b9bd2c24db26b802a6d3ae3d3c0bec8ce..f52f75801561c2fa3f30e17760fb850a9bf9d154"
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": {
"changes": {
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-02 21:37:30 +03:00
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'a' identifier"
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
3
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
4
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
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
6
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
7
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'c' identifier"
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
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
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
3
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
4
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
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
6
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
7
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'c' identifier"
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-02 21:37:30 +03:00
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'c' identifier"
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
3
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
4
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
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
5
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
6
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'c' identifier"
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-02 21:37:30 +03:00
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'x' identifier"
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
3
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
4
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
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
6
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
7
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'c' identifier"
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-02 21:37:30 +03:00
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'y' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
3
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
4
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
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
6
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 21:37:30 +03:00
7
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'c' identifier"
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-02 21:37:30 +03:00
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'z' identifier"
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
3
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 21:37:30 +03:00
4
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 17:50:05 +03:00
5
],
"end": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 17:50:05 +03:00
6
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'c' identifier"
}
]
},
"errors": {}
},
"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 21:51:11 +03:00
"shas": "f52f75801561c2fa3f30e17760fb850a9bf9d154..f170ad7ae1d33e70f4a09856658a72d1fee119ba"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-call-expressions-delete-insert-test",
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
2
]
}
},
"summary": "Added the 'x' identifier"
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
3
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
4
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
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
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
7
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Added the 'c' identifier"
},
{
"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
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'y' identifier"
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
3
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
4
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
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
6
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
7
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'c' identifier"
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-02 21:37:30 +03:00
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'z' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
3
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
4
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
5
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
6
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'c' identifier"
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
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'a' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
3
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
4
]
}
2016-11-02 17:50:05 +03:00
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'b' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
7
]
}
2016-11-02 17:50:05 +03:00
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'c' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"delete": {
"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
2
]
}
2016-11-02 17:50:05 +03:00
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'b' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
3
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
4
]
}
2016-11-02 17:50:05 +03:00
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'b' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
7
]
}
2016-11-02 17:50:05 +03:00
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'c' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"delete": {
"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
2
]
}
2016-11-02 17:50:05 +03:00
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'c' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
3
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
4
]
}
2016-11-02 17:50:05 +03:00
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'b' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
5
],
"end": [
2016-11-11 00:19:53 +03:00
3,
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": "Deleted the 'c' identifier"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"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 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...,)"
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-22 21:51:11 +03:00
"shas": "f170ad7ae1d33e70f4a09856658a72d1fee119ba..ac376c5fd2bb5969e63a9de36085046066ec87a2"
2016-11-02 17:50:05 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-call-expressions-replacement-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"call-expressions.go": [
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
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
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'a' identifier"
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
1,
2016-11-02 21:37:30 +03:00
3
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
4
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
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
1,
2016-11-02 21:37:30 +03:00
6
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
7
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'c' identifier"
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
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
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
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
2,
2016-11-02 21:37:30 +03:00
3
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
4
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
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
2,
2016-11-02 21:37:30 +03:00
6
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
7
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'c' identifier"
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
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'c' identifier"
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
3
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
4
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
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
5
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
6
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'c' identifier"
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-02 21:37:30 +03:00
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'x' identifier"
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
3
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
4
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
7
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"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
2
]
}
},
"summary": "Deleted the 'y' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
3
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 17:50:05 +03:00
4
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'b' identifier"
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
6
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
7
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'c' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"delete": {
"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
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'z' identifier"
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
3
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
4
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'b' identifier"
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
5
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
6
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'c' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/call-expressions.go b/call-expressions.go",
"index a3950ff..d979c0a 100644",
"--- a/call-expressions.go",
"+++ b/call-expressions.go",
"@@ -1,6 +1,6 @@",
"-x(b, c...)",
"-y(b, c,)",
"-z(b,c...,)",
"+a(b, c...)",
"+b(b, c,)",
"+c(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 21:51:11 +03:00
"shas": "ac376c5fd2bb5969e63a9de36085046066ec87a2..8531d9e782883cb99947ce7e382154d95a59bda5"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-call-expressions-delete-replacement-test",
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
1
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
2
]
}
},
"summary": "Deleted the 'a' identifier"
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
3
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
4
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'b' identifier"
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
6
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
7
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'c' identifier"
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
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'b' identifier"
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
3
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
4
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
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
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
7
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"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
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'c' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 21:37:30 +03:00
3
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
4
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'b' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
3,
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
3,
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": "Deleted the 'c' identifier"
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
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'x' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
3
],
"end": [
2016-11-11 00:19:53 +03:00
4,
2016-11-02 17:50:05 +03:00
4
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'b' identifier"
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
6
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
7
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'c' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"delete": {
"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-02 21:37:30 +03:00
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'y' identifier"
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
5,
2016-11-02 17:50:05 +03:00
3
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
4
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'b' identifier"
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
5,
2016-11-02 21:37:30 +03:00
6
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 21:37:30 +03:00
7
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'c' identifier"
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
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-02 21:37:30 +03:00
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'z' identifier"
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
6,
2016-11-02 21:37:30 +03:00
3
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 21:37:30 +03:00
4
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'b' identifier"
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
6,
2016-11-02 17:50:05 +03:00
5
],
"end": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 17:50:05 +03:00
6
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'c' identifier"
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-02 21:37:30 +03:00
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'a' identifier"
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
3
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
4
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
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
6
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
7
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'c' identifier"
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-02 21:37:30 +03:00
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
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
3
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 21:37:30 +03:00
4
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
2016-11-02 17:50:05 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
6
],
"end": [
2016-11-11 00:19:53 +03:00
5,
2016-11-02 17:50:05 +03:00
7
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'c' identifier"
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-02 21:37:30 +03:00
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'c' identifier"
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
3
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
6,
2016-11-02 21:37:30 +03:00
4
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'b' identifier"
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
5
2016-11-02 17:50:05 +03:00
],
"end": [
2016-11-11 00:19:53 +03:00
6,
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": "Added the 'c' identifier"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"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 d979c0a..589914d 100644",
"--- a/call-expressions.go",
"+++ b/call-expressions.go",
"@@ -1,9 +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...,)",
"+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 21:51:11 +03:00
"shas": "8531d9e782883cb99947ce7e382154d95a59bda5..a390ae02bfc9838ec6e494d043d37bef1bfdb71b"
2016-11-02 17:50:05 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-call-expressions-delete-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
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-02 21:37:30 +03:00
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'x' identifier"
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
3
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
4
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
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
],
"end": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 21:37:30 +03:00
7
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"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
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'y' identifier"
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
3
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
4
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
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
],
"end": [
2016-11-11 00:19:53 +03:00
2,
2016-11-02 21:37:30 +03:00
7
2016-11-02 17:50:05 +03:00
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"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
2
2016-11-02 17:50:05 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'z' identifier"
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
3
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
4
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'b' identifier"
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
5
],
"end": [
2016-11-11 00:19:53 +03:00
3,
2016-11-02 17:50:05 +03:00
6
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'c' identifier"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"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 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...,)"
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-22 21:51:11 +03:00
"shas": "a390ae02bfc9838ec6e494d043d37bef1bfdb71b..00635b4df8c9b2421760871438c8d985dd0bf6f4"
2016-11-02 17:50:05 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-call-expressions-delete-rest-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"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
"delete": {
"start": [
1,
1
],
"end": [
1,
2
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
1,
3
],
"end": [
1,
4
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
1,
6
],
"end": [
1,
7
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
2
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
2,
3
],
"end": [
2,
4
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
2,
6
],
"end": [
2,
7
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
3,
3
],
"end": [
3,
4
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
3,
5
],
"end": [
3,
6
]
}
},
"summary": "Deleted the 'c' identifier"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"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 21:51:11 +03:00
"shas": "00635b4df8c9b2421760871438c8d985dd0bf6f4..96bed34391e2a73e19634e703ed8762f0c52c02a"
2016-11-02 17:50:05 +03:00
}]