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
2016-11-14 17:47:04 -05:00

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": "5cc9a7bc27abaaf2a7daae6119afe3d49a139246..a9f90e815413a396f45f5dcb147808fc874d5731"
}
,{
"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": "a9f90e815413a396f45f5dcb147808fc874d5731..45a98c9451b6091d4948ca8907eb0a919a78a744"
}
,{
"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": "45a98c9451b6091d4948ca8907eb0a919a78a744..045429e06c6b56ce770e6ab91be5adcfb175617a"
}
,{
"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": "045429e06c6b56ce770e6ab91be5adcfb175617a..4e499b21ffa2ed28b3d37bff13eac5632a72872a"
}
,{
"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": "4e499b21ffa2ed28b3d37bff13eac5632a72872a..ab1a6da6197ba89fa428c7214f0dc7e01d174771"
}
,{
"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": "ab1a6da6197ba89fa428c7214f0dc7e01d174771..d65ce2d4448f6ea4bcc95821dbf6d8cf92829e8e"
}
,{
"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": "d65ce2d4448f6ea4bcc95821dbf6d8cf92829e8e..a57b9a78d437ae18a78ae1ddb9bcc5ca9247bfd9"
}]