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

479 lines
15 KiB
JSON
Raw Normal View History

2016-11-02 17:50:05 +03:00
[{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-call-expressions-setup-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
2016-12-02 00:03:52 +03:00
"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": [
2016-12-02 00:03:52 +03:00
6,
2016-11-11 00:19:53 +03:00
1
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
2016-12-02 00:03:52 +03:00
},
"errors": {}
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",
2017-01-17 23:26:07 +03:00
"index e69de29b..79058077 100644",
2016-11-11 00:19:53 +03:00
"--- a/call-expressions.go",
"+++ b/call-expressions.go",
2016-12-02 00:03:52 +03:00
"@@ -0,0 +1,5 @@",
"+package main",
"+",
"+func main() {",
"+",
"+}"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 23:12:54 +03:00
"shas": "20ca91d3f69487f7d530b334333fdfe2a3743e03..f28c3d5ee5b66191bb89061bd551b60a74ac7c7c"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-call-expressions-insert-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
2016-12-02 00:07:40 +03:00
"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
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
]
}
},
2016-12-02 00:07:40 +03:00
"summary": "Added the 'x(b, c)' function call in the main function of the 'main' module"
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
]
}
},
2016-12-02 00:07:40 +03:00
"summary": "Added the 'y(b, c)' function call in the main function of the 'main' module"
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
]
}
},
2016-12-02 00:07:40 +03:00
"summary": "Added the 'z(b, c)' function call in the main function of the 'main' module"
2016-11-02 21:37:30 +03:00
}
]
2016-12-02 00:07:40 +03:00
},
"errors": {}
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",
2017-01-17 23:26:07 +03:00
"index 79058077..72918e59 100644",
2016-11-11 00:19:53 +03:00
"--- a/call-expressions.go",
"+++ b/call-expressions.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,7 @@",
" package main",
" ",
" func main() {",
"-",
2016-11-11 00:19:53 +03:00
"+x(b, c...)",
"+y(b, c,)",
"+z(b,c...,)",
2016-12-02 00:03:52 +03:00
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 23:12:54 +03:00
"shas": "f28c3d5ee5b66191bb89061bd551b60a74ac7c7c..4bf42888f808e158884d8ba275440c1044ac7d9c"
}
,{
"testCaseDescription": "go-call-expressions-replacement-test",
"expectedResult": {
2016-12-02 00:03:52 +03:00
"changes": {
"call-expressions.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
2017-01-17 23:26:07 +03:00
"insert": {
"start": [
4,
1
],
"end": [
4,
11
]
}
2016-12-02 00:03:52 +03:00
},
2017-01-17 23:26:07 +03:00
"summary": "Added the 'a(b, c)' function call in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2017-01-17 23:26:07 +03:00
"insert": {
"start": [
5,
1
],
"end": [
5,
9
]
}
2016-12-02 00:03:52 +03:00
},
2017-01-17 23:26:07 +03:00
"summary": "Added the 'b(b, c)' function call in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2017-01-17 23:26:07 +03:00
"insert": {
"start": [
6,
1
],
"end": [
6,
11
]
}
2016-12-02 00:03:52 +03:00
},
2017-01-17 23:26:07 +03:00
"summary": "Added the 'c(b, c)' function call in the main function of the 'main' module"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
11
]
}
},
"summary": "Deleted the 'x(b, c)' function call in the main function of the 'main' module"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the 'y(b, c)' function call in the main function of the 'main' module"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
11
]
}
},
"summary": "Deleted the 'z(b, c)' function call in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
2016-12-02 00:03:52 +03:00
},
"errors": {}
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",
2017-01-17 23:26:07 +03:00
"index 72918e59..2d5e765c 100644",
2016-11-11 00:19:53 +03:00
"--- a/call-expressions.go",
"+++ b/call-expressions.go",
2016-12-02 00:03:52 +03:00
"@@ -1,7 +1,7 @@",
" package main",
" ",
" func main() {",
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...,)",
2016-12-02 00:03:52 +03:00
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 23:12:54 +03:00
"shas": "4bf42888f808e158884d8ba275440c1044ac7d9c..65d3fd0c110b229fa26172815f243a53541e4f0b"
2016-11-02 17:50:05 +03:00
}
,{
"testCaseDescription": "go-call-expressions-delete-replacement-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
2016-12-02 00:03:52 +03:00
"changes": {
2016-11-02 21:37:30 +03:00
"call-expressions.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
2017-01-17 23:26:07 +03:00
"insert": {
"start": [
4,
1
],
"end": [
4,
11
]
}
},
"summary": "Added the 'x(b, c)' function call in the main function of the 'main' module"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
9
]
}
2016-12-02 00:03:52 +03:00
},
2017-01-17 23:26:07 +03:00
"summary": "Added the 'y(b, c)' function call in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2017-01-17 23:26:07 +03:00
"insert": {
"start": [
6,
1
],
"end": [
6,
11
]
}
2016-12-02 00:03:52 +03:00
},
2017-01-17 23:26:07 +03:00
"summary": "Added the 'z(b, c)' function call in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
},
{
"span": {
2017-01-17 23:26:07 +03:00
"delete": {
"start": [
4,
1
],
"end": [
4,
11
]
}
},
"summary": "Deleted the 'a(b, c)' function call in the main function of the 'main' module"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
9
]
}
},
"summary": "Deleted the 'b(b, c)' function call in the main function of the 'main' module"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
11
]
}
2016-12-02 00:03:52 +03:00
},
2017-01-17 23:26:07 +03:00
"summary": "Deleted the 'c(b, c)' function call in the main function of the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
2016-12-02 00:03:52 +03:00
},
"errors": {}
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",
2017-01-17 23:26:07 +03:00
"index 2d5e765c..72918e59 100644",
2016-11-11 00:19:53 +03:00
"--- a/call-expressions.go",
"+++ b/call-expressions.go",
2016-12-02 00:03:52 +03:00
"@@ -1,7 +1,7 @@",
" package main",
" ",
" func main() {",
"-a(b, c...)",
"-b(b, c,)",
"-c(b,c...,)",
2016-12-02 00:03:52 +03:00
"+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",
2017-01-18 23:12:54 +03:00
"shas": "65d3fd0c110b229fa26172815f243a53541e4f0b..6bf993afa56c99144a874460c89325303fc54b21"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-call-expressions-delete-insert-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
2016-12-02 00:07:40 +03:00
"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": [
2016-12-02 00:03:52 +03:00
4,
2016-11-11 00:19:53 +03:00
1
],
"end": [
2016-12-02 00:03:52 +03:00
4,
11
2016-11-11 00:19:53 +03:00
]
}
},
2016-12-02 00:07:40 +03:00
"summary": "Deleted the 'x(b, c)' function call in the main function of the 'main' module"
2016-11-11 00:19:53 +03:00
},
{
"span": {
"delete": {
"start": [
2016-12-02 00:03:52 +03:00
5,
2016-11-11 00:19:53 +03:00
1
],
"end": [
2016-12-02 00:03:52 +03:00
5,
9
2016-11-11 00:19:53 +03:00
]
}
},
2016-12-02 00:07:40 +03:00
"summary": "Deleted the 'y(b, c)' function call in the main function of the 'main' module"
2016-11-11 00:19:53 +03:00
},
{
"span": {
"delete": {
"start": [
2016-12-02 00:03:52 +03:00
6,
1
2016-11-11 00:19:53 +03:00
],
"end": [
2016-12-02 00:03:52 +03:00
6,
11
2016-11-11 00:19:53 +03:00
]
}
},
2016-12-02 00:07:40 +03:00
"summary": "Deleted the 'z(b, c)' function call in the main function of the 'main' module"
}
]
2016-12-02 00:07:40 +03:00
},
"errors": {}
},
"filePaths": [
"call-expressions.go"
],
"patch": [
"diff --git a/call-expressions.go b/call-expressions.go",
2017-01-17 23:26:07 +03:00
"index 72918e59..79058077 100644",
"--- a/call-expressions.go",
"+++ b/call-expressions.go",
2016-12-02 00:03:52 +03:00
"@@ -1,7 +1,5 @@",
" package main",
" ",
" func main() {",
"-x(b, c...)",
"-y(b, c,)",
"-z(b,c...,)",
2016-12-02 00:03:52 +03:00
"+",
" }"
],
"gitDir": "test/corpus/repos/go",
2017-01-18 23:12:54 +03:00
"shas": "6bf993afa56c99144a874460c89325303fc54b21..88b0afbe7ddf59f5ced55be27ce159f7899afd6b"
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-call-expressions-teardown-test",
"expectedResult": {
2016-12-02 00:03:52 +03:00
"changes": {
"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": [
2016-12-02 00:03:52 +03:00
6,
1
2016-11-11 00:19:53 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
2016-12-02 00:03:52 +03:00
},
"errors": {}
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",
2017-01-17 23:26:07 +03:00
"index 79058077..e69de29b 100644",
2016-11-11 00:19:53 +03:00
"--- a/call-expressions.go",
"+++ b/call-expressions.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +0,0 @@",
"-package main",
"-",
"-func main() {",
"-",
"-}"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-18 23:12:54 +03:00
"shas": "88b0afbe7ddf59f5ced55be27ce159f7899afd6b..ef42f9e80388d7180896d3d04b0140b1760b8cde"
2016-11-02 17:50:05 +03:00
}]