mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
462 lines
15 KiB
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": "62b3bd21fe70e211cf5e78be3146344161dec77a..ca7d23b5cf27b8ebacae0c3c222ac23f934b6fca"
|
|
}
|
|
,{
|
|
"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": "ca7d23b5cf27b8ebacae0c3c222ac23f934b6fca..32fb928b7aa07420b58d82564e70b21bf13d52d9"
|
|
}
|
|
,{
|
|
"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": "32fb928b7aa07420b58d82564e70b21bf13d52d9..c63270df5c4feddc8508b1a8b9f486b14fc0c222"
|
|
}
|
|
,{
|
|
"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": "c63270df5c4feddc8508b1a8b9f486b14fc0c222..ad8c97c73ee8a043b8e92a08396dcf7b85a3a0f3"
|
|
}
|
|
,{
|
|
"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": "ad8c97c73ee8a043b8e92a08396dcf7b85a3a0f3..3ee5b527c44bb12d6bc4ec04e91974631ab25c55"
|
|
}
|
|
,{
|
|
"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": "3ee5b527c44bb12d6bc4ec04e91974631ab25c55..fc633da09e13a1bdacf8001b862e01af7062a7f3"
|
|
}
|
|
,{
|
|
"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": "fc633da09e13a1bdacf8001b862e01af7062a7f3..9b03b53a5c7e3dd9c4d4d46b6dd0d7587a54072a"
|
|
}]
|