1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/go/call-expressions.json
2016-11-21 14:39:16 -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": "43d61d9e04b0c6673a33555d7f25630d663e4c4e..e03b1619c5681c7b28b8653b311fcd66897575bb"
}
,{
"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": "e03b1619c5681c7b28b8653b311fcd66897575bb..07b4f26b5352217c6869a78ef83469f2a14363c9"
}
,{
"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": "07b4f26b5352217c6869a78ef83469f2a14363c9..1cf5df78272de704389f0b57d1bd1da579d863e5"
}
,{
"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": "1cf5df78272de704389f0b57d1bd1da579d863e5..7941c05c3135f67909d6bc1baef7ea35a7ab8d25"
}
,{
"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": "7941c05c3135f67909d6bc1baef7ea35a7ab8d25..73a6b385f35c7875082e9e54128f4ad7d81fed86"
}
,{
"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": "73a6b385f35c7875082e9e54128f4ad7d81fed86..daefc40d2b34306b80aa249a400f7061c1fdcba4"
}
,{
"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": "daefc40d2b34306b80aa249a400f7061c1fdcba4..e7f0594268f9cbb4acab662d0f0110540128f668"
}]