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
2016-11-22 13:51:11 -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": "4de5f83f25d7cb95d509a1073416ddae52a4fddc..ff808935bf11f02e520da5341da444d760dd6c3c"
}
,{
"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": "ff808935bf11f02e520da5341da444d760dd6c3c..e79fcd817f6dd1a729e3ca4f12ab30fb718b06d8"
}
,{
"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": "e79fcd817f6dd1a729e3ca4f12ab30fb718b06d8..0935d66b89895adf9bb53fdd783bbf39a38a72ea"
}
,{
"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": "0935d66b89895adf9bb53fdd783bbf39a38a72ea..fc91c986c0110c756bca35361e13fdd8218e2efe"
}
,{
"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": "fc91c986c0110c756bca35361e13fdd8218e2efe..1b1f5d865ba4a86ee3d7255d69c1eceec291bd38"
}
,{
"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": "1b1f5d865ba4a86ee3d7255d69c1eceec291bd38..9138b3cebd27a4b2da5aa8e5fcf488a154f3b3fa"
}
,{
"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": "9138b3cebd27a4b2da5aa8e5fcf488a154f3b3fa..559cb80d4aeb413638aaa2324bad2598772d09eb"
}]