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
2016-11-22 13:51:11 -05:00

1826 lines
57 KiB
JSON

[{
"testCaseDescription": "go-call-expressions-insert-test",
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"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"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go"
],
"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...,)"
],
"gitDir": "test/corpus/repos/go",
"shas": "3769ea1b9bd2c24db26b802a6d3ae3d3c0bec8ce..f52f75801561c2fa3f30e17760fb850a9bf9d154"
}
,{
"testCaseDescription": "go-call-expressions-replacement-insert-test",
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
2
]
}
},
"summary": "Added the 'a' 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 'b' 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 'c' 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"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
4,
3
],
"end": [
4,
4
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'y' identifier"
},
{
"span": {
"insert": {
"start": [
5,
3
],
"end": [
5,
4
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
5,
6
],
"end": [
5,
7
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'z' identifier"
},
{
"span": {
"insert": {
"start": [
6,
3
],
"end": [
6,
4
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
6,
5
],
"end": [
6,
6
]
}
},
"summary": "Added the 'c' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go"
],
"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...,)"
],
"gitDir": "test/corpus/repos/go",
"shas": "f52f75801561c2fa3f30e17760fb850a9bf9d154..f170ad7ae1d33e70f4a09856658a72d1fee119ba"
}
,{
"testCaseDescription": "go-call-expressions-delete-insert-test",
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"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"
},
{
"span": {
"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"
}
]
},
"errors": {}
},
"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": "f170ad7ae1d33e70f4a09856658a72d1fee119ba..ac376c5fd2bb5969e63a9de36085046066ec87a2"
}
,{
"testCaseDescription": "go-call-expressions-replacement-test",
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
2
]
}
},
"summary": "Added the 'a' 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 'b' 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 'c' 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"
},
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
2
]
}
},
"summary": "Deleted the 'x' 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 'y' 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 'z' 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"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go"
],
"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...,)"
],
"gitDir": "test/corpus/repos/go",
"shas": "ac376c5fd2bb5969e63a9de36085046066ec87a2..8531d9e782883cb99947ce7e382154d95a59bda5"
}
,{
"testCaseDescription": "go-call-expressions-delete-replacement-test",
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"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"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
4,
3
],
"end": [
4,
4
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'y' identifier"
},
{
"span": {
"delete": {
"start": [
5,
3
],
"end": [
5,
4
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
7
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'z' identifier"
},
{
"span": {
"delete": {
"start": [
6,
3
],
"end": [
6,
4
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
6,
5
],
"end": [
6,
6
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
4,
3
],
"end": [
4,
4
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
5,
3
],
"end": [
5,
4
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
5,
6
],
"end": [
5,
7
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
6,
3
],
"end": [
6,
4
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
6,
5
],
"end": [
6,
6
]
}
},
"summary": "Added the 'c' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go"
],
"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...,)"
],
"gitDir": "test/corpus/repos/go",
"shas": "8531d9e782883cb99947ce7e382154d95a59bda5..a390ae02bfc9838ec6e494d043d37bef1bfdb71b"
}
,{
"testCaseDescription": "go-call-expressions-delete-test",
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
2
]
}
},
"summary": "Deleted the 'x' 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 'y' 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 'z' 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"
}
]
},
"errors": {}
},
"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": "a390ae02bfc9838ec6e494d043d37bef1bfdb71b..00635b4df8c9b2421760871438c8d985dd0bf6f4"
}
,{
"testCaseDescription": "go-call-expressions-delete-rest-test",
"expectedResult": {
"changes": {
"call-expressions.go": [
{
"span": {
"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"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go"
],
"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...,)"
],
"gitDir": "test/corpus/repos/go",
"shas": "00635b4df8c9b2421760871438c8d985dd0bf6f4..96bed34391e2a73e19634e703ed8762f0c52c02a"
}]