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

462 lines
15 KiB
JSON

[{
"testCaseDescription": "go-array-with-implicit-length-insert-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
29
]
}
},
"summary": "Added the 'a1' variable"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index e69de29..96bef76 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -0,0 +1 @@",
"+const a1 = [...]int{1, 2, 3}"
],
"gitDir": "test/corpus/repos/go",
"shas": "0fff314fad0973ea89120a1ae3b7940e0f7866d2..d047fe40a9c741f62abe5a1313da6f36caca7979"
}
,{
"testCaseDescription": "go-array-with-implicit-length-replacement-insert-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
27
]
}
},
"summary": "Added the 'a1' variable"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
29
]
}
},
"summary": "Added the 'a1' variable"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index 96bef76..f49bee5 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -1 +1,3 @@",
"+const a1 = [...]int{4,5,6}",
"+const a1 = [...]int{1, 2, 3}",
" const a1 = [...]int{1, 2, 3}"
],
"gitDir": "test/corpus/repos/go",
"shas": "d047fe40a9c741f62abe5a1313da6f36caca7979..2fcb5b095ac3ea0981a515c3dd0f52c9212611d5"
}
,{
"testCaseDescription": "go-array-with-implicit-length-delete-insert-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"replace": [
{
"start": [
1,
21
],
"end": [
1,
22
]
},
{
"start": [
1,
21
],
"end": [
1,
22
]
}
]
},
"summary": "Replaced '4' with '1' in the a1 variable"
},
{
"span": {
"insert": {
"start": [
1,
24
],
"end": [
1,
25
]
}
},
"summary": "Added '2' in the a1 variable"
},
{
"span": {
"replace": [
{
"start": [
1,
23
],
"end": [
1,
24
]
},
{
"start": [
1,
27
],
"end": [
1,
28
]
}
]
},
"summary": "Replaced '5' with '3' in the a1 variable"
},
{
"span": {
"delete": {
"start": [
1,
25
],
"end": [
1,
26
]
}
},
"summary": "Deleted '6' in the a1 variable"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index f49bee5..9dcd627 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -1,3 +1,3 @@",
"-const a1 = [...]int{4,5,6}",
"+const a1 = [...]int{1, 2, 3}",
" const a1 = [...]int{1, 2, 3}",
" const a1 = [...]int{1, 2, 3}"
],
"gitDir": "test/corpus/repos/go",
"shas": "2fcb5b095ac3ea0981a515c3dd0f52c9212611d5..f07306969d190ef934d9e77f78c1af6e6aeb0d63"
}
,{
"testCaseDescription": "go-array-with-implicit-length-replacement-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"replace": [
{
"start": [
1,
21
],
"end": [
1,
22
]
},
{
"start": [
1,
21
],
"end": [
1,
22
]
}
]
},
"summary": "Replaced '1' with '4' in the a1 variable"
},
{
"span": {
"insert": {
"start": [
1,
23
],
"end": [
1,
24
]
}
},
"summary": "Added '5' in the a1 variable"
},
{
"span": {
"replace": [
{
"start": [
1,
24
],
"end": [
1,
25
]
},
{
"start": [
1,
25
],
"end": [
1,
26
]
}
]
},
"summary": "Replaced '2' with '6' in the a1 variable"
},
{
"span": {
"delete": {
"start": [
1,
27
],
"end": [
1,
28
]
}
},
"summary": "Deleted '3' in the a1 variable"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index 9dcd627..f49bee5 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -1,3 +1,3 @@",
"-const a1 = [...]int{1, 2, 3}",
"+const a1 = [...]int{4,5,6}",
" const a1 = [...]int{1, 2, 3}",
" const a1 = [...]int{1, 2, 3}"
],
"gitDir": "test/corpus/repos/go",
"shas": "f07306969d190ef934d9e77f78c1af6e6aeb0d63..c40f719c69cda9a21d80cdc1f985fd913875eb7e"
}
,{
"testCaseDescription": "go-array-with-implicit-length-delete-replacement-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
27
]
}
},
"summary": "Deleted the 'a1' variable"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
29
]
}
},
"summary": "Deleted the 'a1' variable"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
27
]
}
},
"summary": "Added the 'a1' variable"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index f49bee5..47b9eed 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -1,3 +1,2 @@",
"-const a1 = [...]int{4,5,6}",
"-const a1 = [...]int{1, 2, 3}",
" const a1 = [...]int{1, 2, 3}",
"+const a1 = [...]int{4,5,6}"
],
"gitDir": "test/corpus/repos/go",
"shas": "c40f719c69cda9a21d80cdc1f985fd913875eb7e..6871f75087736569e032a112eaec06d72af2c580"
}
,{
"testCaseDescription": "go-array-with-implicit-length-delete-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
29
]
}
},
"summary": "Deleted the 'a1' variable"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index 47b9eed..4a8295f 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -1,2 +1 @@",
"-const a1 = [...]int{1, 2, 3}",
" const a1 = [...]int{4,5,6}"
],
"gitDir": "test/corpus/repos/go",
"shas": "6871f75087736569e032a112eaec06d72af2c580..c4b7115fd6f988b0de691ac1ef1a25066093bfb3"
}
,{
"testCaseDescription": "go-array-with-implicit-length-delete-rest-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
27
]
}
},
"summary": "Deleted the 'a1' variable"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"patch": [
"diff --git a/array-with-implicit-length.go b/array-with-implicit-length.go",
"index 4a8295f..e69de29 100644",
"--- a/array-with-implicit-length.go",
"+++ b/array-with-implicit-length.go",
"@@ -1 +0,0 @@",
"-const a1 = [...]int{4,5,6}"
],
"gitDir": "test/corpus/repos/go",
"shas": "c4b7115fd6f988b0de691ac1ef1a25066093bfb3..f366494a187af73e7fcf6d60c2aa3bb503543f80"
}]