1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/go/call-expressions.json

746 lines
24 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": {},
"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,
11
2016-11-11 00:19:53 +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,
9
2016-11-11 00:19:53 +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,
11
2016-11-11 00:19:53 +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-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",
"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": {
"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,
11
2016-11-02 17:50:05 +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,
9
2016-11-02 17:50:05 +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,
11
2016-11-02 17:50:05 +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,
11
2016-11-02 17:50:05 +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,
9
2016-11-02 17:50:05 +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,
11
2016-11-02 17:50:05 +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-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",
"shas": "c8763d16606cda825fb974369f9a2b519439e29e..efeb7a0f095a0f9412a310203ec9147cc43a093a"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-call-expressions-delete-insert-test",
"expectedResult": {
"changes": {},
"errors": {
2016-11-02 21:37:30 +03:00
"call-expressions.go": [
{
"span": {
"insert": {
"start": [
1,
2016-11-02 21:37:30 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
1,
11
2016-11-02 17:50:05 +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": {
"insert": {
2016-11-02 17:50:05 +03:00
"start": [
2,
1
2016-11-02 17:50:05 +03:00
],
"end": [
2,
9
2016-11-02 17:50:05 +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": {
"insert": {
2016-11-02 17:50:05 +03:00
"start": [
3,
1
2016-11-02 17:50:05 +03:00
],
"end": [
3,
11
2016-11-02 17:50:05 +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": {
"delete": {
2016-11-02 17:50:05 +03:00
"start": [
1,
2016-11-02 21:37:30 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
1,
11
2016-11-02 17:50:05 +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": {
2016-11-02 17:50:05 +03:00
"start": [
2,
1
2016-11-02 17:50:05 +03:00
],
"end": [
2,
9
2016-11-02 17:50:05 +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": {
2016-11-02 17:50:05 +03:00
"start": [
3,
1
2016-11-02 17:50:05 +03:00
],
"end": [
3,
11
2016-11-02 17:50:05 +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": [
1,
2016-11-02 21:37:30 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
1,
11
2016-11-02 17:50:05 +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": [
2,
1
2016-11-02 17:50:05 +03:00
],
"end": [
2,
9
2016-11-02 17:50:05 +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": [
3,
1
2016-11-02 17:50:05 +03:00
],
"end": [
3,
11
2016-11-02 17:50:05 +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": {
"delete": {
2016-11-02 17:50:05 +03:00
"start": [
1,
2016-11-02 21:37:30 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
1,
11
2016-11-02 17:50:05 +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": {
"delete": {
2016-11-02 17:50:05 +03:00
"start": [
2,
1
2016-11-02 17:50:05 +03:00
],
"end": [
2,
9
2016-11-02 17:50:05 +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": {
"delete": {
2016-11-02 17:50:05 +03:00
"start": [
3,
1
2016-11-02 17:50:05 +03:00
],
"end": [
3,
11
2016-11-02 17:50:05 +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-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 a3950ff..d979c0a 100644",
2016-11-11 00:19:53 +03:00
"--- a/call-expressions.go",
"+++ b/call-expressions.go",
"@@ -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,)",
"+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",
"shas": "9c07ff15f6bdc008d045bbaebae934200a2a6734..a1710da50116f9380b25e096b698eec1b03325f6"
2016-11-02 17:50:05 +03:00
}
,{
"testCaseDescription": "go-call-expressions-delete-replacement-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"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,
11
2016-11-02 17:50:05 +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": [
2,
1
2016-11-02 17:50:05 +03:00
],
"end": [
2,
9
2016-11-02 17:50:05 +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": [
3,
1
2016-11-02 17:50:05 +03:00
],
"end": [
3,
11
2016-11-02 17:50:05 +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": [
4,
2016-11-02 21:37:30 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
4,
11
2016-11-02 17:50:05 +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": [
5,
1
2016-11-02 17:50:05 +03:00
],
"end": [
5,
9
2016-11-02 17:50:05 +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": [
6,
1
2016-11-02 17:50:05 +03:00
],
"end": [
6,
11
2016-11-02 17:50:05 +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": {
"insert": {
2016-11-02 17:50:05 +03:00
"start": [
4,
2016-11-02 21:37:30 +03:00
1
2016-11-02 17:50:05 +03:00
],
"end": [
4,
11
2016-11-02 17:50:05 +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": {
"insert": {
2016-11-02 17:50:05 +03:00
"start": [
5,
1
2016-11-02 17:50:05 +03:00
],
"end": [
5,
9
2016-11-02 17:50:05 +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": {
"insert": {
2016-11-02 17:50:05 +03:00
"start": [
6,
1
2016-11-02 17:50:05 +03:00
],
"end": [
6,
11
2016-11-02 17:50:05 +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-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 d979c0a..589914d 100644",
2016-11-11 00:19:53 +03:00
"--- a/call-expressions.go",
"+++ b/call-expressions.go",
"@@ -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...,)",
" 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",
"shas": "a1710da50116f9380b25e096b698eec1b03325f6..a1c6a59603e72f43ab5a830e99818da54d6fb95b"
2016-11-02 17:50:05 +03:00
}
,{
"testCaseDescription": "go-call-expressions-delete-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"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,
11
2016-11-11 00:19:53 +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,
9
2016-11-11 00:19:53 +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": [
3,
1
2016-11-11 00:19:53 +03:00
],
"end": [
3,
11
2016-11-11 00:19:53 +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": [
1,
2016-11-11 00:19:53 +03:00
1
],
"end": [
1,
11
2016-11-11 00:19:53 +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": [
2,
1
2016-11-11 00:19:53 +03:00
],
"end": [
2,
9
2016-11-11 00:19:53 +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,
1
2016-11-11 00:19:53 +03:00
],
"end": [
3,
11
2016-11-11 00:19:53 +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-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",
"shas": "9293baf00488ad7785e23a8b78ab5f95342ebab3..8cef11ced56e7aed74af10acde19377ccfe0b6af"
2016-11-02 17:50:05 +03:00
}]