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/array-with-implicit-length.json

395 lines
13 KiB
JSON
Raw Normal View History

2016-11-02 17:50:05 +03:00
[{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-array-with-implicit-length-setup-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"array-with-implicit-length.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
"insert": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-12-02 00:03:52 +03:00
6,
2016-11-02 21:37:30 +03:00
1
2016-11-02 17:50:05 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Added the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"array-with-implicit-length.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
2017-01-12 02:28:58 +03:00
"index e69de29..7905807 100644",
2016-11-11 00:19:53 +03:00
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.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-12 02:28:58 +03:00
"shas": "ede817f2d69f14475f354045064794e04a6bfec8..9b9c64b0842e4a595bf50ee1abad0eaf95dcfab1"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-array-with-implicit-length-insert-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
2016-12-07 23:41:28 +03:00
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"insert": {
"start": [
4,
2017-01-10 23:09:09 +03:00
7
2016-12-07 23:41:28 +03:00
],
"end": [
4,
29
]
}
},
2017-01-10 23:09:09 +03:00
"summary": "Added the 'a1' var assignment in the main function of the 'main' module"
2016-12-07 23:41:28 +03:00
}
]
},
2016-11-02 17:50:05 +03:00
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"array-with-implicit-length.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
2017-01-12 02:28:58 +03:00
"index 7905807..a53dc8c 100644",
2016-11-11 00:19:53 +03:00
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
"-",
2016-11-11 00:19:53 +03:00
"+const a1 = [...]int{1, 2, 3}",
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-12 02:28:58 +03:00
"shas": "9b9c64b0842e4a595bf50ee1abad0eaf95dcfab1..17e8f1008c39db67963476087bcc325efb2b73b2"
2016-11-02 17:50:05 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-array-with-implicit-length-replacement-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
2016-12-07 23:41:28 +03:00
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"replace": [
{
"start": [
4,
21
],
"end": [
4,
22
]
},
{
"start": [
4,
21
],
"end": [
4,
22
]
}
]
},
2017-01-09 23:13:55 +03:00
"summary": "Replaced '1' with '4' in the [...]int array of the 'main' function"
2016-12-07 23:41:28 +03:00
},
{
"span": {
2017-01-09 23:13:55 +03:00
"insert": {
"start": [
4,
23
],
"end": [
4,
24
]
}
2016-12-07 23:41:28 +03:00
},
2017-01-09 23:13:55 +03:00
"summary": "Added '5' in the [...]int array of the 'main' function"
2016-12-07 23:41:28 +03:00
},
{
"span": {
"replace": [
{
"start": [
4,
2017-01-09 23:13:55 +03:00
24
2016-12-07 23:41:28 +03:00
],
"end": [
4,
2017-01-09 23:13:55 +03:00
25
2016-12-07 23:41:28 +03:00
]
},
{
"start": [
4,
25
],
"end": [
4,
26
]
}
]
},
2017-01-09 23:13:55 +03:00
"summary": "Replaced '2' with '6' in the [...]int array of the 'main' function"
},
{
"span": {
"delete": {
"start": [
4,
27
],
"end": [
4,
28
]
}
},
"summary": "Deleted '3' in the [...]int array of the 'main' function"
2016-12-07 23:41:28 +03:00
}
]
},
2016-11-02 21:37:30 +03:00
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
2017-01-12 02:28:58 +03:00
"index a53dc8c..e9e3d08 100644",
2016-11-11 00:19:53 +03:00
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
2016-11-11 00:19:53 +03:00
"-const a1 = [...]int{1, 2, 3}",
"+const a1 = [...]int{4,5,6}",
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-12 02:28:58 +03:00
"shas": "17e8f1008c39db67963476087bcc325efb2b73b2..2cc8087f56148a938af7da3813e34a58a321b287"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-array-with-implicit-length-delete-replacement-test",
"expectedResult": {
2016-12-07 23:41:28 +03:00
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"replace": [
{
"start": [
4,
21
],
"end": [
4,
22
]
},
{
"start": [
4,
21
],
"end": [
4,
22
]
}
]
},
2017-01-09 23:13:55 +03:00
"summary": "Replaced '4' with '1' in the [...]int array of the 'main' function"
2016-12-07 23:41:28 +03:00
},
{
"span": {
2017-01-09 23:13:55 +03:00
"insert": {
"start": [
4,
24
],
"end": [
4,
25
]
}
2016-12-07 23:41:28 +03:00
},
2017-01-09 23:13:55 +03:00
"summary": "Added '2' in the [...]int array of the 'main' function"
2016-12-07 23:41:28 +03:00
},
{
"span": {
"replace": [
{
"start": [
4,
2017-01-09 23:13:55 +03:00
23
2016-12-07 23:41:28 +03:00
],
"end": [
4,
2017-01-09 23:13:55 +03:00
24
2016-12-07 23:41:28 +03:00
]
},
{
"start": [
4,
27
],
"end": [
4,
28
]
}
]
},
2017-01-09 23:13:55 +03:00
"summary": "Replaced '5' with '3' in the [...]int array of the 'main' function"
},
{
"span": {
"delete": {
"start": [
4,
25
],
"end": [
4,
26
]
}
},
"summary": "Deleted '6' in the [...]int array of the 'main' function"
2016-12-07 23:41:28 +03:00
}
]
},
2016-11-02 17:50:05 +03:00
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"array-with-implicit-length.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
2017-01-12 02:28:58 +03:00
"index e9e3d08..a53dc8c 100644",
2016-11-11 00:19:53 +03:00
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
2016-11-11 00:19:53 +03:00
"-const a1 = [...]int{4,5,6}",
2016-12-02 00:03:52 +03:00
"+const a1 = [...]int{1, 2, 3}",
" }"
2016-11-11 00:19:53 +03:00
],
2016-11-02 17:50:05 +03:00
"gitDir": "test/corpus/repos/go",
2017-01-12 02:28:58 +03:00
"shas": "2cc8087f56148a938af7da3813e34a58a321b287..1ac9bd8f7d472e400246863f84922ae5c11b6c82"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-array-with-implicit-length-delete-insert-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
2016-12-07 23:41:28 +03:00
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"delete": {
"start": [
4,
2017-01-10 23:09:09 +03:00
7
2016-12-07 23:41:28 +03:00
],
"end": [
4,
29
]
}
},
2017-01-10 23:09:09 +03:00
"summary": "Deleted the 'a1' var assignment in the main function of the 'main' module"
2016-12-07 23:41:28 +03:00
}
]
},
2016-11-02 17:50:05 +03:00
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"array-with-implicit-length.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
2017-01-12 02:28:58 +03:00
"index a53dc8c..7905807 100644",
2016-11-11 00:19:53 +03:00
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
2016-12-02 00:03:52 +03:00
"@@ -1,5 +1,5 @@",
" package main",
" ",
" func main() {",
2016-11-11 00:19:53 +03:00
"-const a1 = [...]int{1, 2, 3}",
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-12 02:28:58 +03:00
"shas": "1ac9bd8f7d472e400246863f84922ae5c11b6c82..6391aa786800f3c356fa0d01c559cf3d25a015c6"
2016-11-02 17:50:05 +03:00
}
,{
2016-12-02 00:03:52 +03:00
"testCaseDescription": "go-array-with-implicit-length-teardown-test",
2016-11-02 17:50:05 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"array-with-implicit-length.go": [
2016-11-02 17:50:05 +03:00
{
"span": {
"delete": {
"start": [
2016-11-11 00:19:53 +03:00
1,
2016-11-02 17:50:05 +03:00
1
],
"end": [
2016-12-02 00:03:52 +03:00
6,
1
2016-11-02 17:50:05 +03:00
]
}
},
2016-12-02 00:03:52 +03:00
"summary": "Deleted the 'main' module"
2016-11-02 17:50:05 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"array-with-implicit-length.go"
2016-11-02 17:50:05 +03:00
],
2016-11-11 00:19:53 +03:00
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
2017-01-12 02:28:58 +03:00
"index 7905807..e69de29 100644",
2016-11-11 00:19:53 +03:00
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.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-12 02:28:58 +03:00
"shas": "6391aa786800f3c356fa0d01c559cf3d25a015c6..261a5e2932b5820448fae2f0a1afcef36285490f"
2016-11-02 17:50:05 +03:00
}]