1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +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-21 22:39:16 +03:00
"shas": "43d61d9e04b0c6673a33555d7f25630d663e4c4e..e03b1619c5681c7b28b8653b311fcd66897575bb"
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-21 22:39:16 +03:00
"shas": "e03b1619c5681c7b28b8653b311fcd66897575bb..07b4f26b5352217c6869a78ef83469f2a14363c9"
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-21 22:39:16 +03:00
"shas": "07b4f26b5352217c6869a78ef83469f2a14363c9..1cf5df78272de704389f0b57d1bd1da579d863e5"
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-21 22:39:16 +03:00
"shas": "1cf5df78272de704389f0b57d1bd1da579d863e5..7941c05c3135f67909d6bc1baef7ea35a7ab8d25"
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-21 22:39:16 +03:00
"shas": "7941c05c3135f67909d6bc1baef7ea35a7ab8d25..73a6b385f35c7875082e9e54128f4ad7d81fed86"
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-21 22:39:16 +03:00
"shas": "73a6b385f35c7875082e9e54128f4ad7d81fed86..daefc40d2b34306b80aa249a400f7061c1fdcba4"
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-21 22:39:16 +03:00
"shas": "daefc40d2b34306b80aa249a400f7061c1fdcba4..e7f0594268f9cbb4acab662d0f0110540128f668"
2016-11-02 17:50:05 +03:00
}]