1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 09:15:01 +03:00

add all of the tests

This commit is contained in:
joshvera 2016-11-02 14:37:30 -04:00
parent b27bf0e72c
commit 96ea6f8e11
55 changed files with 27060 additions and 1086 deletions

View File

@ -0,0 +1,754 @@
[{
"testCaseDescription": "go-array-types-insert-test",
"expectedResult": {
"changes": {
"array-types.go": [
{
"span": {
"insert": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
3,
9
],
"end": [
3,
10
]
}
},
"summary": "Added the '2'"
},
{
"span": {
"insert": {
"start": [
3,
11
],
"end": [
3,
12
]
}
},
"summary": "Added the '2'"
},
{
"span": {
"insert": {
"start": [
3,
13
],
"end": [
3,
14
]
}
},
"summary": "Added the 'x' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"array-types.go"
],
"sha1": "bc6ca561e481bd07c82a9eff8eb09adcdb83423d",
"gitDir": "test/corpus/repos/go",
"sha2": "2e7fec6102cc7b11d1e96420c1cab56699976742"
}
,{
"testCaseDescription": "go-array-types-replacement-insert-test",
"expectedResult": {
"changes": {
"array-types.go": [
{
"span": {
"insert": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
3,
9
],
"end": [
3,
10
]
}
},
"summary": "Added the '1'"
},
{
"span": {
"insert": {
"start": [
3,
11
],
"end": [
3,
12
]
}
},
"summary": "Added the '1'"
},
{
"span": {
"insert": {
"start": [
3,
13
],
"end": [
3,
14
]
}
},
"summary": "Added the 'y' identifier"
},
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Added the '2'"
},
{
"span": {
"insert": {
"start": [
4,
11
],
"end": [
4,
12
]
}
},
"summary": "Added the '2'"
},
{
"span": {
"insert": {
"start": [
4,
13
],
"end": [
4,
14
]
}
},
"summary": "Added the 'x' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"array-types.go"
],
"sha1": "2e7fec6102cc7b11d1e96420c1cab56699976742",
"gitDir": "test/corpus/repos/go",
"sha2": "65fea5737f64bd830993e8a351290cfafcc7eebf"
}
,{
"testCaseDescription": "go-array-types-delete-insert-test",
"expectedResult": {
"changes": {
"array-types.go": [
{
"span": {
"replace": [
{
"start": [
3,
9
],
"end": [
3,
10
]
},
{
"start": [
3,
9
],
"end": [
3,
10
]
}
]
},
"summary": "Replaced '1' with '2'"
},
{
"span": {
"replace": [
{
"start": [
3,
11
],
"end": [
3,
12
]
},
{
"start": [
3,
11
],
"end": [
3,
12
]
}
]
},
"summary": "Replaced '1' with '2'"
},
{
"span": {
"replace": [
{
"start": [
3,
13
],
"end": [
3,
14
]
},
{
"start": [
3,
13
],
"end": [
3,
14
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'x' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"array-types.go"
],
"sha1": "65fea5737f64bd830993e8a351290cfafcc7eebf",
"gitDir": "test/corpus/repos/go",
"sha2": "a71831f1d0c1f869013390a733ace4f239dddfc0"
}
,{
"testCaseDescription": "go-array-types-replacement-test",
"expectedResult": {
"changes": {
"array-types.go": [
{
"span": {
"replace": [
{
"start": [
3,
9
],
"end": [
3,
10
]
},
{
"start": [
3,
9
],
"end": [
3,
10
]
}
]
},
"summary": "Replaced '2' with '1'"
},
{
"span": {
"replace": [
{
"start": [
3,
11
],
"end": [
3,
12
]
},
{
"start": [
3,
11
],
"end": [
3,
12
]
}
]
},
"summary": "Replaced '2' with '1'"
},
{
"span": {
"replace": [
{
"start": [
3,
13
],
"end": [
3,
14
]
},
{
"start": [
3,
13
],
"end": [
3,
14
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'y' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"array-types.go"
],
"sha1": "a71831f1d0c1f869013390a733ace4f239dddfc0",
"gitDir": "test/corpus/repos/go",
"sha2": "66d56bec2931a0fe4de3e7dfcec6231393bbb6a1"
}
,{
"testCaseDescription": "go-array-types-delete-replacement-test",
"expectedResult": {
"changes": {
"array-types.go": [
{
"span": {
"delete": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
3,
9
],
"end": [
3,
10
]
}
},
"summary": "Deleted the '1'"
},
{
"span": {
"delete": {
"start": [
3,
11
],
"end": [
3,
12
]
}
},
"summary": "Deleted the '1'"
},
{
"span": {
"delete": {
"start": [
3,
13
],
"end": [
3,
14
]
}
},
"summary": "Deleted the 'y' identifier"
},
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Deleted the '2'"
},
{
"span": {
"delete": {
"start": [
4,
11
],
"end": [
4,
12
]
}
},
"summary": "Deleted the '2'"
},
{
"span": {
"delete": {
"start": [
4,
13
],
"end": [
4,
14
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Added the '1'"
},
{
"span": {
"insert": {
"start": [
4,
11
],
"end": [
4,
12
]
}
},
"summary": "Added the '1'"
},
{
"span": {
"insert": {
"start": [
4,
13
],
"end": [
4,
14
]
}
},
"summary": "Added the 'y' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"array-types.go"
],
"sha1": "66d56bec2931a0fe4de3e7dfcec6231393bbb6a1",
"gitDir": "test/corpus/repos/go",
"sha2": "0dbb738f4c7eae314530ad53862c0902ebef10bd"
}
,{
"testCaseDescription": "go-array-types-delete-test",
"expectedResult": {
"changes": {
"array-types.go": [
{
"span": {
"delete": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
3,
9
],
"end": [
3,
10
]
}
},
"summary": "Deleted the '2'"
},
{
"span": {
"delete": {
"start": [
3,
11
],
"end": [
3,
12
]
}
},
"summary": "Deleted the '2'"
},
{
"span": {
"delete": {
"start": [
3,
13
],
"end": [
3,
14
]
}
},
"summary": "Deleted the 'x' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"array-types.go"
],
"sha1": "0dbb738f4c7eae314530ad53862c0902ebef10bd",
"gitDir": "test/corpus/repos/go",
"sha2": "c5239b916a582e9bbf0de9d0618f81baa32c4b76"
}
,{
"testCaseDescription": "go-array-types-delete-rest-test",
"expectedResult": {
"changes": {
"array-types.go": [
{
"span": {
"delete": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
3,
9
],
"end": [
3,
10
]
}
},
"summary": "Deleted the '1'"
},
{
"span": {
"delete": {
"start": [
3,
11
],
"end": [
3,
12
]
}
},
"summary": "Deleted the '1'"
},
{
"span": {
"delete": {
"start": [
3,
13
],
"end": [
3,
14
]
}
},
"summary": "Deleted the 'y' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"array-types.go"
],
"sha1": "c5239b916a582e9bbf0de9d0618f81baa32c4b76",
"gitDir": "test/corpus/repos/go",
"sha2": "5f080c2d475fbd06dc5dc688c23c324a89f7ce07"
}]

View File

@ -0,0 +1,568 @@
[{
"testCaseDescription": "go-array-with-implicit-length-insert-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
29
]
}
},
"summary": "Added the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"sha1": "78815b5ab49f24e2d713cc04753cb3eb523f159e",
"gitDir": "test/corpus/repos/go",
"sha2": "d047bdf0e8b8f8e68d1f4044c6a576cf4be7112d"
}
,{
"testCaseDescription": "go-array-with-implicit-length-replacement-insert-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
27
]
}
},
"summary": "Added the 'variable' variable"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
29
]
}
},
"summary": "Added the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"sha1": "d047bdf0e8b8f8e68d1f4044c6a576cf4be7112d",
"gitDir": "test/corpus/repos/go",
"sha2": "0f79b1699ec4c99a06e390d177c52233987c3c6f"
}
,{
"testCaseDescription": "go-array-with-implicit-length-delete-insert-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"replace": [
{
"start": [
3,
21
],
"end": [
3,
22
]
},
{
"start": [
3,
21
],
"end": [
3,
22
]
}
]
},
"summary": "Replaced '4' with '1' in the const a1 = [...]int{1, 2, 3} variable of the 'main' module statement"
},
{
"span": {
"insert": {
"start": [
3,
24
],
"end": [
3,
25
]
}
},
"summary": "Added '2' in the const a1 = [...]int{1, 2, 3} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
3,
23
],
"end": [
3,
24
]
},
{
"start": [
3,
27
],
"end": [
3,
28
]
}
]
},
"summary": "Replaced '5' with '3' in the const a1 = [...]int{1, 2, 3} variable of the 'main' module statement"
},
{
"span": {
"delete": {
"start": [
3,
25
],
"end": [
3,
26
]
}
},
"summary": "Deleted '6' in the const a1 = [...]int{1, 2, 3} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
3,
21
],
"end": [
3,
22
]
},
{
"start": [
3,
21
],
"end": [
3,
22
]
}
]
},
"summary": "Replaced '4' with '1' in the const a1 = [...]int{1, 2, 3} variable of the 'main' module statement"
},
{
"span": {
"insert": {
"start": [
3,
24
],
"end": [
3,
25
]
}
},
"summary": "Added '2' in the const a1 = [...]int{1, 2, 3} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
3,
23
],
"end": [
3,
24
]
},
{
"start": [
3,
27
],
"end": [
3,
28
]
}
]
},
"summary": "Replaced '5' with '3' in the const a1 = [...]int{1, 2, 3} variable of the 'main' module statement"
},
{
"span": {
"delete": {
"start": [
3,
25
],
"end": [
3,
26
]
}
},
"summary": "Deleted '6' in the const a1 = [...]int{1, 2, 3} variable of the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"sha1": "0f79b1699ec4c99a06e390d177c52233987c3c6f",
"gitDir": "test/corpus/repos/go",
"sha2": "78b268ae2394d21ea94bb7dc13602c1d79a9852a"
}
,{
"testCaseDescription": "go-array-with-implicit-length-replacement-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"replace": [
{
"start": [
3,
21
],
"end": [
3,
22
]
},
{
"start": [
3,
21
],
"end": [
3,
22
]
}
]
},
"summary": "Replaced '1' with '4' in the const a1 = [...]int{4,5,6} variable of the 'main' module statement"
},
{
"span": {
"insert": {
"start": [
3,
23
],
"end": [
3,
24
]
}
},
"summary": "Added '5' in the const a1 = [...]int{4,5,6} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
3,
24
],
"end": [
3,
25
]
},
{
"start": [
3,
25
],
"end": [
3,
26
]
}
]
},
"summary": "Replaced '2' with '6' in the const a1 = [...]int{4,5,6} variable of the 'main' module statement"
},
{
"span": {
"delete": {
"start": [
3,
27
],
"end": [
3,
28
]
}
},
"summary": "Deleted '3' in the const a1 = [...]int{4,5,6} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
3,
21
],
"end": [
3,
22
]
},
{
"start": [
3,
21
],
"end": [
3,
22
]
}
]
},
"summary": "Replaced '1' with '4' in the const a1 = [...]int{4,5,6} variable of the 'main' module statement"
},
{
"span": {
"insert": {
"start": [
3,
23
],
"end": [
3,
24
]
}
},
"summary": "Added '5' in the const a1 = [...]int{4,5,6} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
3,
24
],
"end": [
3,
25
]
},
{
"start": [
3,
25
],
"end": [
3,
26
]
}
]
},
"summary": "Replaced '2' with '6' in the const a1 = [...]int{4,5,6} variable of the 'main' module statement"
},
{
"span": {
"delete": {
"start": [
3,
27
],
"end": [
3,
28
]
}
},
"summary": "Deleted '3' in the const a1 = [...]int{4,5,6} variable of the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"sha1": "78b268ae2394d21ea94bb7dc13602c1d79a9852a",
"gitDir": "test/corpus/repos/go",
"sha2": "0c805b04967c44d8f98233f6d231bd21f68654be"
}
,{
"testCaseDescription": "go-array-with-implicit-length-delete-replacement-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
27
]
}
},
"summary": "Deleted the 'variable' variable"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
29
]
}
},
"summary": "Deleted the 'variable' variable"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
27
]
}
},
"summary": "Added the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"sha1": "0c805b04967c44d8f98233f6d231bd21f68654be",
"gitDir": "test/corpus/repos/go",
"sha2": "371a6b797f1ba659ca6a0d9b6986c654cbfe52b9"
}
,{
"testCaseDescription": "go-array-with-implicit-length-delete-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
29
]
}
},
"summary": "Deleted the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"sha1": "371a6b797f1ba659ca6a0d9b6986c654cbfe52b9",
"gitDir": "test/corpus/repos/go",
"sha2": "23462bb72e52744afdc8539db1890c2550ee7b18"
}
,{
"testCaseDescription": "go-array-with-implicit-length-delete-rest-test",
"expectedResult": {
"changes": {
"array-with-implicit-length.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
27
]
}
},
"summary": "Deleted the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
"array-with-implicit-length.go"
],
"sha1": "23462bb72e52744afdc8539db1890c2550ee7b18",
"gitDir": "test/corpus/repos/go",
"sha2": "b1911fe4350922c55eefb0556333f591731b09f5"
}]

File diff suppressed because it is too large Load Diff

View File

@ -1,346 +0,0 @@
[{
"testCaseDescription": "go-assignment-insert-test",
"expectedResult": {
"changes": {
"assignment.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
17
]
}
},
"summary": "Added the 'foo' variable"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.go"
],
"sha1": "8f13696c49fad55aab85d6533dd781bf28a01fc7",
"gitDir": "test/corpus/repos/go",
"sha2": "c5baea93a151dec938049d8f2c8fac40f245cfe0"
}
,{
"testCaseDescription": "go-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"assignment.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
25
]
}
},
"summary": "Added the 'bar' variable"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
17
]
}
},
"summary": "Added the 'foo' variable"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.go"
],
"sha1": "c5baea93a151dec938049d8f2c8fac40f245cfe0",
"gitDir": "test/corpus/repos/go",
"sha2": "264820627046276847b9c2a1929fb304e36b502a"
}
,{
"testCaseDescription": "go-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"assignment.go": [
{
"span": {
"replace": [
{
"start": [
3,
5
],
"end": [
3,
8
]
},
{
"start": [
3,
5
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the 'bar' identifier with the 'foo' identifier in the foo variable of the 'main' module statement"
},
{
"span": {
"insert": {
"start": [
3,
15
],
"end": [
3,
17
]
}
},
"summary": "Added '42' in the foo variable of the 'main' module statement"
},
{
"span": {
"delete": {
"start": [
3,
18
],
"end": [
3,
25
]
}
},
"summary": "Deleted the \"hello\" string in the foo variable of the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.go"
],
"sha1": "264820627046276847b9c2a1929fb304e36b502a",
"gitDir": "test/corpus/repos/go",
"sha2": "48d84b2947d60457ced4e1365cd5b89ca1cbd28c"
}
,{
"testCaseDescription": "go-assignment-replacement-test",
"expectedResult": {
"changes": {
"assignment.go": [
{
"span": {
"replace": [
{
"start": [
3,
5
],
"end": [
3,
8
]
},
{
"start": [
3,
5
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'bar' identifier in the bar variable of the 'main' module statement"
},
{
"span": {
"insert": {
"start": [
3,
18
],
"end": [
3,
25
]
}
},
"summary": "Added the \"hello\" string in the bar variable of the 'main' module statement"
},
{
"span": {
"delete": {
"start": [
3,
15
],
"end": [
3,
17
]
}
},
"summary": "Deleted '42' in the bar variable of the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.go"
],
"sha1": "48d84b2947d60457ced4e1365cd5b89ca1cbd28c",
"gitDir": "test/corpus/repos/go",
"sha2": "b577caf19aec29d5c0e80932856d018416fb0ec3"
}
,{
"testCaseDescription": "go-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"assignment.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
25
]
}
},
"summary": "Deleted the 'bar' variable"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
17
]
}
},
"summary": "Deleted the 'foo' variable"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
25
]
}
},
"summary": "Added the 'bar' variable"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.go"
],
"sha1": "b577caf19aec29d5c0e80932856d018416fb0ec3",
"gitDir": "test/corpus/repos/go",
"sha2": "654375255efee9bf179cae84625b89bb8cf7b7a5"
}
,{
"testCaseDescription": "go-assignment-delete-test",
"expectedResult": {
"changes": {
"assignment.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
17
]
}
},
"summary": "Deleted the 'foo' variable"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.go"
],
"sha1": "654375255efee9bf179cae84625b89bb8cf7b7a5",
"gitDir": "test/corpus/repos/go",
"sha2": "ef8633887476546d2a9a539dd1611b4c49accc36"
}
,{
"testCaseDescription": "go-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"assignment.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
25
]
}
},
"summary": "Deleted the 'bar' variable"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.go"
],
"sha1": "ef8633887476546d2a9a539dd1611b4c49accc36",
"gitDir": "test/corpus/repos/go",
"sha2": "d24fbce25cc7b4c29a23412a643f825dd967a7c5"
}]

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -25,9 +25,9 @@
"filePaths": [
"const-declarations.go"
],
"sha1": "18f2b685e29d85628a72a3d738da1c5c2cc9b4c2",
"sha1": "3ba0c5fa5af4ff296115957cfdb1131de7c23097",
"gitDir": "test/corpus/repos/go",
"sha2": "0583b3a89dab67e91ee5bb4a26aae4933e5194ac"
"sha2": "769d6b98d8e9c178d34cee5602e70e6787f89d61"
}
,{
"testCaseDescription": "go-const-declarations-replacement-insert-test",
@ -71,9 +71,9 @@
"filePaths": [
"const-declarations.go"
],
"sha1": "0583b3a89dab67e91ee5bb4a26aae4933e5194ac",
"sha1": "769d6b98d8e9c178d34cee5602e70e6787f89d61",
"gitDir": "test/corpus/repos/go",
"sha2": "e7032b55c1f171b2af0801b6ff7a863a4cdb1dd2"
"sha2": "280da57d4126b546277911bcdd364a94b10b8b4e"
}
,{
"testCaseDescription": "go-const-declarations-delete-insert-test",
@ -213,9 +213,9 @@
"filePaths": [
"const-declarations.go"
],
"sha1": "e7032b55c1f171b2af0801b6ff7a863a4cdb1dd2",
"sha1": "280da57d4126b546277911bcdd364a94b10b8b4e",
"gitDir": "test/corpus/repos/go",
"sha2": "df5ca6308dedaec9cb93a78c740cdb63076747e4"
"sha2": "d08fdc76419200fa06087428523aea779817b797"
}
,{
"testCaseDescription": "go-const-declarations-replacement-test",
@ -355,9 +355,9 @@
"filePaths": [
"const-declarations.go"
],
"sha1": "df5ca6308dedaec9cb93a78c740cdb63076747e4",
"sha1": "d08fdc76419200fa06087428523aea779817b797",
"gitDir": "test/corpus/repos/go",
"sha2": "86f39269b39b7114e0d5e3df452978e1ce4e8f69"
"sha2": "810e9f558045d9c115d2024c34957e588763b8ef"
}
,{
"testCaseDescription": "go-const-declarations-delete-replacement-test",
@ -416,9 +416,9 @@
"filePaths": [
"const-declarations.go"
],
"sha1": "86f39269b39b7114e0d5e3df452978e1ce4e8f69",
"sha1": "810e9f558045d9c115d2024c34957e588763b8ef",
"gitDir": "test/corpus/repos/go",
"sha2": "00d37262754bf950b9d99c03eeeb264d0e700231"
"sha2": "b03f91acbe84e07505cddad0634af413360e3b11"
}
,{
"testCaseDescription": "go-const-declarations-delete-test",
@ -447,9 +447,9 @@
"filePaths": [
"const-declarations.go"
],
"sha1": "00d37262754bf950b9d99c03eeeb264d0e700231",
"sha1": "b03f91acbe84e07505cddad0634af413360e3b11",
"gitDir": "test/corpus/repos/go",
"sha2": "ffd54a25562d992f1152fd9fec5a1b75f49e5ddc"
"sha2": "c13f182011fe16b97b3fe1b158fa6bb5f29613dc"
}
,{
"testCaseDescription": "go-const-declarations-delete-rest-test",
@ -478,7 +478,7 @@
"filePaths": [
"const-declarations.go"
],
"sha1": "ffd54a25562d992f1152fd9fec5a1b75f49e5ddc",
"sha1": "c13f182011fe16b97b3fe1b158fa6bb5f29613dc",
"gitDir": "test/corpus/repos/go",
"sha2": "b64942610b3fa99fc90d5b2ffb76705d1ff4dbdd"
"sha2": "952d1b46e882bdbb09783d3af1790bedba413106"
}]

View File

@ -25,9 +25,9 @@
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "06a1b7e9d94946d6c0fb7f950c8c19e6d7f7c5a1",
"sha1": "f5321d8bf3849b79986c4bfc5e82607ddbc8dad4",
"gitDir": "test/corpus/repos/go",
"sha2": "7b3395e265a127d6f48d91cf8e768bfe34831404"
"sha2": "d721589c082e2dcb7a4548da6dce0a8176f9dbcd"
}
,{
"testCaseDescription": "go-const-with-implicit-values-replacement-insert-test",
@ -71,9 +71,9 @@
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "7b3395e265a127d6f48d91cf8e768bfe34831404",
"sha1": "d721589c082e2dcb7a4548da6dce0a8176f9dbcd",
"gitDir": "test/corpus/repos/go",
"sha2": "ec0c38a1ab7fd620167cb1d1da4495ee222a7ddd"
"sha2": "cf96041c06ae2a0260bd5e91e29fbe2adcf9a702"
}
,{
"testCaseDescription": "go-const-with-implicit-values-delete-insert-test",
@ -168,9 +168,9 @@
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "ec0c38a1ab7fd620167cb1d1da4495ee222a7ddd",
"sha1": "cf96041c06ae2a0260bd5e91e29fbe2adcf9a702",
"gitDir": "test/corpus/repos/go",
"sha2": "729c02e6f2aaa88c6818abe834038c32dea83dd6"
"sha2": "842303f1cb0cea9cb6da2ae210f5592bc968692a"
}
,{
"testCaseDescription": "go-const-with-implicit-values-replacement-test",
@ -265,9 +265,9 @@
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "729c02e6f2aaa88c6818abe834038c32dea83dd6",
"sha1": "842303f1cb0cea9cb6da2ae210f5592bc968692a",
"gitDir": "test/corpus/repos/go",
"sha2": "cf26c467519a79c7bfc94c63e33fa226dd1b5533"
"sha2": "222c5c5fdc1e9156328ed863084b80e2130b0e95"
}
,{
"testCaseDescription": "go-const-with-implicit-values-delete-replacement-test",
@ -326,9 +326,9 @@
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "cf26c467519a79c7bfc94c63e33fa226dd1b5533",
"sha1": "222c5c5fdc1e9156328ed863084b80e2130b0e95",
"gitDir": "test/corpus/repos/go",
"sha2": "c83e4cd930c55aa41585a5feccfc3a9fa4bfed70"
"sha2": "12fd74b5540339c11d52d523fd2ded014bb4fb96"
}
,{
"testCaseDescription": "go-const-with-implicit-values-delete-test",
@ -357,9 +357,9 @@
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "c83e4cd930c55aa41585a5feccfc3a9fa4bfed70",
"sha1": "12fd74b5540339c11d52d523fd2ded014bb4fb96",
"gitDir": "test/corpus/repos/go",
"sha2": "cea427057ba534391967825a8f0c1e3b025439c5"
"sha2": "477af71b3a4435100d66f2d6c359ffad92e5365a"
}
,{
"testCaseDescription": "go-const-with-implicit-values-delete-rest-test",
@ -388,7 +388,7 @@
"filePaths": [
"const-with-implicit-values.go"
],
"sha1": "cea427057ba534391967825a8f0c1e3b025439c5",
"sha1": "477af71b3a4435100d66f2d6c359ffad92e5365a",
"gitDir": "test/corpus/repos/go",
"sha2": "dd5066f2e8a0a5c3972bf21a5ca298aa21946e9f"
"sha2": "8a043890af77fa924eb4f14646c0799bc878eced"
}]

View File

@ -37,9 +37,9 @@
"filePaths": [
"constructors.go"
],
"sha1": "dd5066f2e8a0a5c3972bf21a5ca298aa21946e9f",
"sha1": "8a043890af77fa924eb4f14646c0799bc878eced",
"gitDir": "test/corpus/repos/go",
"sha2": "e37d3d3ab61d4d5a3d1b110e21fdb84c8140629f"
"sha2": "1e1c162ea4c09a518c1efe80363b3bc44ca5548d"
}
,{
"testCaseDescription": "go-constructors-replacement-insert-test",
@ -443,9 +443,9 @@
"filePaths": [
"constructors.go"
],
"sha1": "e37d3d3ab61d4d5a3d1b110e21fdb84c8140629f",
"sha1": "1e1c162ea4c09a518c1efe80363b3bc44ca5548d",
"gitDir": "test/corpus/repos/go",
"sha2": "abde4410f54f9c87b0fa6a383bb4d05ec36ab122"
"sha2": "d0807bf4119d97200b164cdc9ff2b6e43ab15106"
}
,{
"testCaseDescription": "go-constructors-delete-insert-test",
@ -648,9 +648,9 @@
"filePaths": [
"constructors.go"
],
"sha1": "abde4410f54f9c87b0fa6a383bb4d05ec36ab122",
"sha1": "d0807bf4119d97200b164cdc9ff2b6e43ab15106",
"gitDir": "test/corpus/repos/go",
"sha2": "c6bacd2809bc32672191d8779cc62afd848af6b6"
"sha2": "af10df47d43500e75d854ce3b00145e11aad6daa"
}
,{
"testCaseDescription": "go-constructors-replacement-test",
@ -853,9 +853,9 @@
"filePaths": [
"constructors.go"
],
"sha1": "c6bacd2809bc32672191d8779cc62afd848af6b6",
"sha1": "af10df47d43500e75d854ce3b00145e11aad6daa",
"gitDir": "test/corpus/repos/go",
"sha2": "9f629438e1f3719571bde71c408458b7499a6c13"
"sha2": "2280bfb7219ff0221b7103745b92a67e9dc2a7b4"
}
,{
"testCaseDescription": "go-constructors-delete-replacement-test",
@ -1454,9 +1454,9 @@
"filePaths": [
"constructors.go"
],
"sha1": "9f629438e1f3719571bde71c408458b7499a6c13",
"sha1": "2280bfb7219ff0221b7103745b92a67e9dc2a7b4",
"gitDir": "test/corpus/repos/go",
"sha2": "f16353ea4ac1ba63f7a6fbf20cebe37b0795a5e3"
"sha2": "a5a3db2b6b4f764ae1fee27dcd73dee3f6a21be6"
}
,{
"testCaseDescription": "go-constructors-delete-test",
@ -1665,9 +1665,9 @@
"filePaths": [
"constructors.go"
],
"sha1": "f16353ea4ac1ba63f7a6fbf20cebe37b0795a5e3",
"sha1": "a5a3db2b6b4f764ae1fee27dcd73dee3f6a21be6",
"gitDir": "test/corpus/repos/go",
"sha2": "9ae2be3b8c3f28eae790254dfcd5418322a7d29e"
"sha2": "70aca6da371464899218df663e205a760df29c5d"
}
,{
"testCaseDescription": "go-constructors-delete-rest-test",
@ -1708,7 +1708,7 @@
"filePaths": [
"constructors.go"
],
"sha1": "9ae2be3b8c3f28eae790254dfcd5418322a7d29e",
"sha1": "70aca6da371464899218df663e205a760df29c5d",
"gitDir": "test/corpus/repos/go",
"sha2": "28f9d0d23acbf260bc76bc1872d8f1ade5b63907"
"sha2": "584deaa5dd925533538300d4f1b7fb87536a4484"
}]

View File

@ -37,9 +37,9 @@
"filePaths": [
"float-literals.go"
],
"sha1": "a2b011eb43cb7387b0c13f0af9c25357f0a815ea",
"sha1": "8576eb3bc6fa4d3ae5bb48b761bdce8fd3b13434",
"gitDir": "test/corpus/repos/go",
"sha2": "503aa15c7164aa0d7ef5bc568222d2303caa0211"
"sha2": "87f1b9074b8ab84b55c7e350b218519079c1a28f"
}
,{
"testCaseDescription": "go-float-literals-replacement-insert-test",
@ -353,9 +353,9 @@
"filePaths": [
"float-literals.go"
],
"sha1": "503aa15c7164aa0d7ef5bc568222d2303caa0211",
"sha1": "87f1b9074b8ab84b55c7e350b218519079c1a28f",
"gitDir": "test/corpus/repos/go",
"sha2": "e76839e47c49c30419456e46c6f0eb70837489a9"
"sha2": "5c3ffa798f2af35129766d4416b31e54327d5c1c"
}
,{
"testCaseDescription": "go-float-literals-delete-insert-test",
@ -603,9 +603,9 @@
"filePaths": [
"float-literals.go"
],
"sha1": "e76839e47c49c30419456e46c6f0eb70837489a9",
"sha1": "5c3ffa798f2af35129766d4416b31e54327d5c1c",
"gitDir": "test/corpus/repos/go",
"sha2": "0efb85b1f00e42ea3948540ce320ffba6e4ec3e4"
"sha2": "e745d234bfa8c8cb24bcfa8cf206d9fceaf3eafe"
}
,{
"testCaseDescription": "go-float-literals-replacement-test",
@ -919,9 +919,9 @@
"filePaths": [
"float-literals.go"
],
"sha1": "0efb85b1f00e42ea3948540ce320ffba6e4ec3e4",
"sha1": "e745d234bfa8c8cb24bcfa8cf206d9fceaf3eafe",
"gitDir": "test/corpus/repos/go",
"sha2": "bb3546ff8a0afba864e4d46776287c8b4c89f9de"
"sha2": "d07f397e594fda2dc0ccea685efd4369252837b3"
}
,{
"testCaseDescription": "go-float-literals-delete-replacement-test",
@ -1385,9 +1385,9 @@
"filePaths": [
"float-literals.go"
],
"sha1": "bb3546ff8a0afba864e4d46776287c8b4c89f9de",
"sha1": "d07f397e594fda2dc0ccea685efd4369252837b3",
"gitDir": "test/corpus/repos/go",
"sha2": "911522ed9b43ed72bd114907ea04ea6a821baa45"
"sha2": "2bd29ccd6384f5879be0746b41e6270b76a190b4"
}
,{
"testCaseDescription": "go-float-literals-delete-test",
@ -1551,9 +1551,9 @@
"filePaths": [
"float-literals.go"
],
"sha1": "911522ed9b43ed72bd114907ea04ea6a821baa45",
"sha1": "2bd29ccd6384f5879be0746b41e6270b76a190b4",
"gitDir": "test/corpus/repos/go",
"sha2": "2b4209415a7cb7f7979de65d61ba21489751cb06"
"sha2": "65a2871566ab94d475f3f98e119c87ebeff94765"
}
,{
"testCaseDescription": "go-float-literals-delete-rest-test",
@ -1594,7 +1594,7 @@
"filePaths": [
"float-literals.go"
],
"sha1": "2b4209415a7cb7f7979de65d61ba21489751cb06",
"sha1": "65a2871566ab94d475f3f98e119c87ebeff94765",
"gitDir": "test/corpus/repos/go",
"sha2": "e9bbbdb9d5ff21e586ed651f8b750bb05eb77669"
"sha2": "f21837e2d040e66d0d8daa1c191e700d37a53d67"
}]

View File

@ -37,9 +37,9 @@
"filePaths": [
"for-statements.go"
],
"sha1": "48b6876aec3649bd6c1a5d151bc936a44ae2497c",
"sha1": "540bda00930627c7abe0e448825fe9cf179bee4b",
"gitDir": "test/corpus/repos/go",
"sha2": "ed16777a7a1dfa62ab47982a3df10d3d12317b75"
"sha2": "b052f18f410f3c1fdc13795867fbcfd683bafb4d"
}
,{
"testCaseDescription": "go-for-statements-replacement-insert-test",
@ -563,9 +563,9 @@
"filePaths": [
"for-statements.go"
],
"sha1": "ed16777a7a1dfa62ab47982a3df10d3d12317b75",
"sha1": "b052f18f410f3c1fdc13795867fbcfd683bafb4d",
"gitDir": "test/corpus/repos/go",
"sha2": "acb5e17f695595212f0bb28367b82aed8018eb23"
"sha2": "02e2fb6e0b02730e5e52dd6e83bb9c562d72bc84"
}
,{
"testCaseDescription": "go-for-statements-delete-insert-test",
@ -1389,9 +1389,9 @@
"filePaths": [
"for-statements.go"
],
"sha1": "acb5e17f695595212f0bb28367b82aed8018eb23",
"sha1": "02e2fb6e0b02730e5e52dd6e83bb9c562d72bc84",
"gitDir": "test/corpus/repos/go",
"sha2": "cf718775469724a2665464908c2e20c277397cca"
"sha2": "05666447cae2b981a9cfa7fa2af595c993c3253e"
}
,{
"testCaseDescription": "go-for-statements-replacement-test",
@ -2215,9 +2215,9 @@
"filePaths": [
"for-statements.go"
],
"sha1": "cf718775469724a2665464908c2e20c277397cca",
"sha1": "05666447cae2b981a9cfa7fa2af595c993c3253e",
"gitDir": "test/corpus/repos/go",
"sha2": "383c5fd862b14e33b466f81dece184eca5570041"
"sha2": "90496b21771e26cd576e1d5a41c0d81dbcc3ae4f"
}
,{
"testCaseDescription": "go-for-statements-delete-replacement-test",
@ -3116,9 +3116,9 @@
"filePaths": [
"for-statements.go"
],
"sha1": "383c5fd862b14e33b466f81dece184eca5570041",
"sha1": "90496b21771e26cd576e1d5a41c0d81dbcc3ae4f",
"gitDir": "test/corpus/repos/go",
"sha2": "7cd962c43640800ef25c8d4df587aba7bb7c269e"
"sha2": "ee7ca5bddbb83c4d119ee448744d55001cb04653"
}
,{
"testCaseDescription": "go-for-statements-delete-test",
@ -3747,9 +3747,9 @@
"filePaths": [
"for-statements.go"
],
"sha1": "7cd962c43640800ef25c8d4df587aba7bb7c269e",
"sha1": "ee7ca5bddbb83c4d119ee448744d55001cb04653",
"gitDir": "test/corpus/repos/go",
"sha2": "09dd73e5afa741e2839324b53d49286a8e7dbe51"
"sha2": "feea2519a144ecdb0e83017ba3d55ad96f2f7b64"
}
,{
"testCaseDescription": "go-for-statements-delete-rest-test",
@ -3790,7 +3790,7 @@
"filePaths": [
"for-statements.go"
],
"sha1": "09dd73e5afa741e2839324b53d49286a8e7dbe51",
"sha1": "feea2519a144ecdb0e83017ba3d55ad96f2f7b64",
"gitDir": "test/corpus/repos/go",
"sha2": "8c585fa63c2ff92c2632b942d45620d91496d960"
"sha2": "7df349910ceaadefe13145e08d0c99a5f6031c9d"
}]

View File

@ -340,9 +340,9 @@
"filePaths": [
"function-declarations.go"
],
"sha1": "20e66b2e336f02fedafb15db48921c714b737c43",
"sha1": "7df349910ceaadefe13145e08d0c99a5f6031c9d",
"gitDir": "test/corpus/repos/go",
"sha2": "6a92e922c4e513333953c490115da2f638b39043"
"sha2": "6b93978ce06b5fac61a1ff88b611f0b024141ac1"
}
,{
"testCaseDescription": "go-function-declarations-replacement-insert-test",
@ -1016,9 +1016,9 @@
"filePaths": [
"function-declarations.go"
],
"sha1": "6a92e922c4e513333953c490115da2f638b39043",
"sha1": "6b93978ce06b5fac61a1ff88b611f0b024141ac1",
"gitDir": "test/corpus/repos/go",
"sha2": "162a337cca9ddd6b2fc7f5907187c24d01c0ed75"
"sha2": "8617ac0e34c44bf5d26ec99f760d401f5b8aa560"
}
,{
"testCaseDescription": "go-function-declarations-delete-insert-test",
@ -1140,9 +1140,9 @@
"filePaths": [
"function-declarations.go"
],
"sha1": "162a337cca9ddd6b2fc7f5907187c24d01c0ed75",
"sha1": "8617ac0e34c44bf5d26ec99f760d401f5b8aa560",
"gitDir": "test/corpus/repos/go",
"sha2": "e66124c2b5e124b4a7fb4cd91dfc9af4f2319c86"
"sha2": "660217e66cb4d4a5bb99b6cd6329def7ca3218ea"
}
,{
"testCaseDescription": "go-function-declarations-replacement-test",
@ -1264,9 +1264,9 @@
"filePaths": [
"function-declarations.go"
],
"sha1": "e66124c2b5e124b4a7fb4cd91dfc9af4f2319c86",
"sha1": "660217e66cb4d4a5bb99b6cd6329def7ca3218ea",
"gitDir": "test/corpus/repos/go",
"sha2": "c272cd47cd44b25e25b9c78a3c03989d7bc96193"
"sha2": "0ef7d82b8cc98e79b87c915c4db0d7cfd21996b1"
}
,{
"testCaseDescription": "go-function-declarations-delete-replacement-test",
@ -2270,9 +2270,9 @@
"filePaths": [
"function-declarations.go"
],
"sha1": "c272cd47cd44b25e25b9c78a3c03989d7bc96193",
"sha1": "0ef7d82b8cc98e79b87c915c4db0d7cfd21996b1",
"gitDir": "test/corpus/repos/go",
"sha2": "25a53febc6543d62d1933c58d6f9f8383de95391"
"sha2": "a44e49383a7561920647f04c31a47ef3dba7da76"
}
,{
"testCaseDescription": "go-function-declarations-delete-test",
@ -2616,9 +2616,9 @@
"filePaths": [
"function-declarations.go"
],
"sha1": "25a53febc6543d62d1933c58d6f9f8383de95391",
"sha1": "a44e49383a7561920647f04c31a47ef3dba7da76",
"gitDir": "test/corpus/repos/go",
"sha2": "5d83777f9f5d98f7b05f475581271c79e1b9ebcb"
"sha2": "882233214b47de0fc0ba932bdfa1be0bb15dad18"
}
,{
"testCaseDescription": "go-function-declarations-delete-rest-test",
@ -2962,7 +2962,7 @@
"filePaths": [
"function-declarations.go"
],
"sha1": "5d83777f9f5d98f7b05f475581271c79e1b9ebcb",
"sha1": "882233214b47de0fc0ba932bdfa1be0bb15dad18",
"gitDir": "test/corpus/repos/go",
"sha2": "0031d7891be1930ec7d0c1e37ea18c12fc53f609"
"sha2": "d9ee2d23c7f0c560ed36ccc37fd2e2ee6cd99e8c"
}]

View File

@ -1,8 +1,8 @@
[{
"testCaseDescription": "go-function-literal-insert-test",
"testCaseDescription": "go-function-literals-insert-test",
"expectedResult": {
"changes": {
"function-literal.go": [
"function-literals.go": [
{
"span": {
"insert": {
@ -23,17 +23,17 @@
"errors": {}
},
"filePaths": [
"function-literal.go"
"function-literals.go"
],
"sha1": "b8bae5c65a680232431ad8af160a9344913ff879",
"sha1": "765f7ff85813f48b9ce9ae6a921d6f41db942f9f",
"gitDir": "test/corpus/repos/go",
"sha2": "ab4502bcbae11318d6d845fd10f5170255a2b0ef"
"sha2": "ef1f68b91070788a46f1d79853fcd77bc25421bf"
}
,{
"testCaseDescription": "go-function-literal-replacement-insert-test",
"testCaseDescription": "go-function-literals-replacement-insert-test",
"expectedResult": {
"changes": {
"function-literal.go": [
"function-literals.go": [
{
"span": {
"insert": {
@ -69,17 +69,17 @@
"errors": {}
},
"filePaths": [
"function-literal.go"
"function-literals.go"
],
"sha1": "ab4502bcbae11318d6d845fd10f5170255a2b0ef",
"sha1": "ef1f68b91070788a46f1d79853fcd77bc25421bf",
"gitDir": "test/corpus/repos/go",
"sha2": "a60da85b6bcbbba5e831c6b4766e1350784ed74b"
"sha2": "c3ff44137f460ba9edd49b5b87480b5ce760d28a"
}
,{
"testCaseDescription": "go-function-literal-delete-insert-test",
"testCaseDescription": "go-function-literals-delete-insert-test",
"expectedResult": {
"changes": {
"function-literal.go": [
"function-literals.go": [
{
"span": {
"replace": [
@ -193,17 +193,17 @@
"errors": {}
},
"filePaths": [
"function-literal.go"
"function-literals.go"
],
"sha1": "a60da85b6bcbbba5e831c6b4766e1350784ed74b",
"sha1": "c3ff44137f460ba9edd49b5b87480b5ce760d28a",
"gitDir": "test/corpus/repos/go",
"sha2": "9d116b312a9e4453ef8f2831ca65bfa64391b015"
"sha2": "a71e418f25e60423846c81d08c8d1df6384f0397"
}
,{
"testCaseDescription": "go-function-literal-replacement-test",
"testCaseDescription": "go-function-literals-replacement-test",
"expectedResult": {
"changes": {
"function-literal.go": [
"function-literals.go": [
{
"span": {
"replace": [
@ -317,17 +317,17 @@
"errors": {}
},
"filePaths": [
"function-literal.go"
"function-literals.go"
],
"sha1": "9d116b312a9e4453ef8f2831ca65bfa64391b015",
"sha1": "a71e418f25e60423846c81d08c8d1df6384f0397",
"gitDir": "test/corpus/repos/go",
"sha2": "8953c6516ddc59cf21ff7aa306b880ca30f5ae7c"
"sha2": "06680eb488d5085aad9309e40ca7b05b2422ecfa"
}
,{
"testCaseDescription": "go-function-literal-delete-replacement-test",
"testCaseDescription": "go-function-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"function-literal.go": [
"function-literals.go": [
{
"span": {
"delete": {
@ -378,17 +378,17 @@
"errors": {}
},
"filePaths": [
"function-literal.go"
"function-literals.go"
],
"sha1": "8953c6516ddc59cf21ff7aa306b880ca30f5ae7c",
"sha1": "06680eb488d5085aad9309e40ca7b05b2422ecfa",
"gitDir": "test/corpus/repos/go",
"sha2": "f1c8413582c416c6d6b94569769eee53d294cd92"
"sha2": "9b2a0d37f45bd38a2a638800044012aaf8733814"
}
,{
"testCaseDescription": "go-function-literal-delete-test",
"testCaseDescription": "go-function-literals-delete-test",
"expectedResult": {
"changes": {
"function-literal.go": [
"function-literals.go": [
{
"span": {
"delete": {
@ -409,17 +409,17 @@
"errors": {}
},
"filePaths": [
"function-literal.go"
"function-literals.go"
],
"sha1": "f1c8413582c416c6d6b94569769eee53d294cd92",
"sha1": "9b2a0d37f45bd38a2a638800044012aaf8733814",
"gitDir": "test/corpus/repos/go",
"sha2": "19ef69cf23b606fd52a7196e2ad1548d714872c3"
"sha2": "175cd6ba9d5f0aeb19c36d1a5be8f0e9ff42fb6b"
}
,{
"testCaseDescription": "go-function-literal-delete-rest-test",
"testCaseDescription": "go-function-literals-delete-rest-test",
"expectedResult": {
"changes": {
"function-literal.go": [
"function-literals.go": [
{
"span": {
"delete": {
@ -440,9 +440,9 @@
"errors": {}
},
"filePaths": [
"function-literal.go"
"function-literals.go"
],
"sha1": "19ef69cf23b606fd52a7196e2ad1548d714872c3",
"sha1": "175cd6ba9d5f0aeb19c36d1a5be8f0e9ff42fb6b",
"gitDir": "test/corpus/repos/go",
"sha2": "18f2b685e29d85628a72a3d738da1c5c2cc9b4c2"
"sha2": "3ba0c5fa5af4ff296115957cfdb1131de7c23097"
}]

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,562 @@
[{
"testCaseDescription": "go-go-and-defer-statements-insert-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"sha1": "b0b32b87d35e9ced404d377dedc47c6f14c26929",
"gitDir": "test/corpus/repos/go",
"sha2": "9f676ef8698904539a7baadbe5c83f25229b59b5"
}
,{
"testCaseDescription": "go-go-and-defer-statements-replacement-insert-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"insert": {
"start": [
3,
7
],
"end": [
3,
12
]
}
},
"summary": "Added the 'identifier()' function call"
},
{
"span": {
"insert": {
"start": [
4,
4
],
"end": [
4,
9
]
}
},
"summary": "Added the 'identifier()' function call"
},
{
"span": {
"insert": {
"start": [
5,
7
],
"end": [
5,
12
]
}
},
"summary": "Added the 'identifier()' function call"
},
{
"span": {
"insert": {
"start": [
6,
4
],
"end": [
6,
9
]
}
},
"summary": "Added the 'identifier()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"sha1": "9f676ef8698904539a7baadbe5c83f25229b59b5",
"gitDir": "test/corpus/repos/go",
"sha2": "e8e39d5f896adce7b2ab3e49dd498c1f834bcb2f"
}
,{
"testCaseDescription": "go-go-and-defer-statements-delete-insert-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
7
],
"end": [
3,
8
]
},
{
"start": [
3,
7
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the identifier() function call"
},
{
"span": {
"replace": [
{
"start": [
3,
9
],
"end": [
3,
10
]
},
{
"start": [
3,
9
],
"end": [
3,
10
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier in the identifier() function call"
},
{
"span": {
"replace": [
{
"start": [
4,
4
],
"end": [
4,
5
]
},
{
"start": [
4,
4
],
"end": [
4,
5
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'x' identifier in the identifier() function call"
},
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
7
]
},
{
"start": [
4,
6
],
"end": [
4,
7
]
}
]
},
"summary": "Replaced the 'd' identifier with the 'y' identifier in the identifier() function call"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"sha1": "e8e39d5f896adce7b2ab3e49dd498c1f834bcb2f",
"gitDir": "test/corpus/repos/go",
"sha2": "e86fea264834370032cc145ccd2f0baca18f2b04"
}
,{
"testCaseDescription": "go-go-and-defer-statements-replacement-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
7
],
"end": [
3,
8
]
},
{
"start": [
3,
7
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in the identifier() function call"
},
{
"span": {
"replace": [
{
"start": [
3,
9
],
"end": [
3,
10
]
},
{
"start": [
3,
9
],
"end": [
3,
10
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier in the identifier() function call"
},
{
"span": {
"replace": [
{
"start": [
4,
4
],
"end": [
4,
5
]
},
{
"start": [
4,
4
],
"end": [
4,
5
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'c' identifier in the identifier() function call"
},
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
7
]
},
{
"start": [
4,
6
],
"end": [
4,
7
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'd' identifier in the identifier() function call"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"sha1": "e86fea264834370032cc145ccd2f0baca18f2b04",
"gitDir": "test/corpus/repos/go",
"sha2": "ce5b1ef93ca7cb270e7f8a10efcaf61475ac365a"
}
,{
"testCaseDescription": "go-go-and-defer-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"delete": {
"start": [
3,
7
],
"end": [
3,
12
]
}
},
"summary": "Deleted the 'identifier()' function call"
},
{
"span": {
"delete": {
"start": [
4,
4
],
"end": [
4,
9
]
}
},
"summary": "Deleted the 'identifier()' function call"
},
{
"span": {
"delete": {
"start": [
5,
7
],
"end": [
5,
12
]
}
},
"summary": "Deleted the 'identifier()' function call"
},
{
"span": {
"delete": {
"start": [
6,
4
],
"end": [
6,
9
]
}
},
"summary": "Deleted the 'identifier()' function call"
},
{
"span": {
"insert": {
"start": [
5,
7
],
"end": [
5,
12
]
}
},
"summary": "Added the 'identifier()' function call"
},
{
"span": {
"insert": {
"start": [
6,
4
],
"end": [
6,
9
]
}
},
"summary": "Added the 'identifier()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"sha1": "ce5b1ef93ca7cb270e7f8a10efcaf61475ac365a",
"gitDir": "test/corpus/repos/go",
"sha2": "9c48a60c63a374f1d5dd74a0c091af0312afaa84"
}
,{
"testCaseDescription": "go-go-and-defer-statements-delete-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"delete": {
"start": [
3,
7
],
"end": [
3,
12
]
}
},
"summary": "Deleted the 'identifier()' function call"
},
{
"span": {
"delete": {
"start": [
4,
4
],
"end": [
4,
9
]
}
},
"summary": "Deleted the 'identifier()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"sha1": "9c48a60c63a374f1d5dd74a0c091af0312afaa84",
"gitDir": "test/corpus/repos/go",
"sha2": "6c7e9142b7eb4a071be5ebf516e0304b7e9048a3"
}
,{
"testCaseDescription": "go-go-and-defer-statements-delete-rest-test",
"expectedResult": {
"changes": {
"go-and-defer-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"go-and-defer-statements.go"
],
"sha1": "6c7e9142b7eb4a071be5ebf516e0304b7e9048a3",
"gitDir": "test/corpus/repos/go",
"sha2": "ac67e54df719e8cba21a6e66ccf9e476f42fdb4f"
}]

View File

@ -0,0 +1,649 @@
[{
"testCaseDescription": "go-grouped-import-declarations-insert-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Added the \"net/http\" import statement"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Added the \"some/dsl\" import statement"
}
]
},
"errors": {
"grouped-import-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Added the 'import (\n\"net/http\"\n . \"some/dsl\"\n alias \"some/package\"\n)' at line 3, column 1 - line 7, column 2"
}
]
}
},
"filePaths": [
"grouped-import-declarations.go"
],
"sha1": "6ae44d93b965fa401485e97adcc7692b7352dffe",
"gitDir": "test/corpus/repos/go",
"sha2": "18e77814086235e39191abedac55d090c950eace"
}
,{
"testCaseDescription": "go-grouped-import-declarations-replacement-insert-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Added the \"net/socket\" import statement"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Added the \"types/dsl\" import statement"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Added the \"net/http\" import statement"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Added the \"some/dsl\" import statement"
}
]
},
"errors": {
"grouped-import-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Added the 'import (\n\"net/socket\"\n . \"types/dsl\"\n alias \"awesome/package\"\n)' at line 3, column 1 - line 7, column 2"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Added the 'import (\n\"net/http\"\n . \"some/dsl\"\n alias \"some/package\"\n)' at line 8, column 1 - line 12, column 2"
}
]
}
},
"filePaths": [
"grouped-import-declarations.go"
],
"sha1": "18e77814086235e39191abedac55d090c950eace",
"gitDir": "test/corpus/repos/go",
"sha2": "76dec8815dcb679bed6a92705116a5998ac6373b"
}
,{
"testCaseDescription": "go-grouped-import-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
13
]
},
{
"start": [
4,
1
],
"end": [
4,
11
]
}
]
},
"summary": "Replaced the \"net/socket\" string with the \"net/http\" string in the \"net/http\" import statement of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
16
]
},
{
"start": [
5,
5
],
"end": [
5,
15
]
}
]
},
"summary": "Replaced the \"types/dsl\" string with the \"some/dsl\" string in the \"some/dsl\" import statement of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
6,
9
],
"end": [
6,
26
]
},
{
"start": [
6,
9
],
"end": [
6,
23
]
}
]
},
"summary": "Replaced the \"awesome/package\" string with the \"some/package\" string"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-import-declarations.go"
],
"sha1": "76dec8815dcb679bed6a92705116a5998ac6373b",
"gitDir": "test/corpus/repos/go",
"sha2": "8692af58cbcc1ee9c1ff56e25fd8bc3a7c3bfa7c"
}
,{
"testCaseDescription": "go-grouped-import-declarations-replacement-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
11
]
},
{
"start": [
4,
1
],
"end": [
4,
13
]
}
]
},
"summary": "Replaced the \"net/http\" string with the \"net/socket\" string in the \"net/socket\" import statement of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
15
]
},
{
"start": [
5,
5
],
"end": [
5,
16
]
}
]
},
"summary": "Replaced the \"some/dsl\" string with the \"types/dsl\" string in the \"types/dsl\" import statement of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
6,
9
],
"end": [
6,
23
]
},
{
"start": [
6,
9
],
"end": [
6,
26
]
}
]
},
"summary": "Replaced the \"some/package\" string with the \"awesome/package\" string"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-import-declarations.go"
],
"sha1": "8692af58cbcc1ee9c1ff56e25fd8bc3a7c3bfa7c",
"gitDir": "test/corpus/repos/go",
"sha2": "89f8ba2a63b0d665ffafcdf2c0da087c592e3062"
}
,{
"testCaseDescription": "go-grouped-import-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the \"net/socket\" import statement"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the \"types/dsl\" import statement"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Deleted the \"net/http\" import statement"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Deleted the \"some/dsl\" import statement"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Added the \"net/socket\" import statement"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Added the \"types/dsl\" import statement"
}
]
},
"errors": {
"grouped-import-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the 'import (\n\"net/socket\"\n . \"types/dsl\"\n alias \"awesome/package\"\n)' at line 3, column 1 - line 7, column 2"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Deleted the 'import (\n\"net/http\"\n . \"some/dsl\"\n alias \"some/package\"\n)' at line 8, column 1 - line 12, column 2"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Added the 'import (\n\"net/socket\"\n . \"types/dsl\"\n alias \"awesome/package\"\n)' at line 8, column 1 - line 12, column 2"
}
]
}
},
"filePaths": [
"grouped-import-declarations.go"
],
"sha1": "89f8ba2a63b0d665ffafcdf2c0da087c592e3062",
"gitDir": "test/corpus/repos/go",
"sha2": "f7376f4c8f9cb71e4b9e4e864a68c3d305ba96c3"
}
,{
"testCaseDescription": "go-grouped-import-declarations-delete-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the \"net/http\" import statement"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the \"some/dsl\" import statement"
}
]
},
"errors": {
"grouped-import-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the 'import (\n\"net/http\"\n . \"some/dsl\"\n alias \"some/package\"\n)' at line 3, column 1 - line 7, column 2"
}
]
}
},
"filePaths": [
"grouped-import-declarations.go"
],
"sha1": "f7376f4c8f9cb71e4b9e4e864a68c3d305ba96c3",
"gitDir": "test/corpus/repos/go",
"sha2": "dc1d9176b2a523153affcf5ae9931c9a98449ed9"
}
,{
"testCaseDescription": "go-grouped-import-declarations-delete-rest-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the \"net/socket\" import statement"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the \"types/dsl\" import statement"
}
]
},
"errors": {
"grouped-import-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the 'import (\n\"net/socket\"\n . \"types/dsl\"\n alias \"awesome/package\"\n)' at line 3, column 1 - line 7, column 2"
}
]
}
},
"filePaths": [
"grouped-import-declarations.go"
],
"sha1": "dc1d9176b2a523153affcf5ae9931c9a98449ed9",
"gitDir": "test/corpus/repos/go",
"sha2": "4ca031f803adbcd705d5538e50cda9a909e3b6d2"
}]

View File

@ -0,0 +1,700 @@
[{
"testCaseDescription": "go-grouped-var-declarations-insert-test",
"expectedResult": {
"changes": {
"grouped-var-declarations.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Added 'zero' identifier"
},
{
"span": {
"insert": {
"start": [
4,
8
],
"end": [
4,
9
]
}
},
"summary": "Added '0'"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Added 'one' identifier"
},
{
"span": {
"insert": {
"start": [
5,
7
],
"end": [
5,
8
]
}
},
"summary": "Added '1'"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-var-declarations.go"
],
"sha1": "93092da9ac9ca1f459a3c096a07197103b3d5ef0",
"gitDir": "test/corpus/repos/go",
"sha2": "6a5f08b65276caafa79d80e3535382b561ce7cf7"
}
,{
"testCaseDescription": "go-grouped-var-declarations-replacement-insert-test",
"expectedResult": {
"changes": {
"grouped-var-declarations.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added 'a' identifier"
},
{
"span": {
"insert": {
"start": [
4,
5
],
"end": [
4,
6
]
}
},
"summary": "Added '0'"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Added 'b' identifier"
},
{
"span": {
"insert": {
"start": [
5,
5
],
"end": [
5,
6
]
}
},
"summary": "Added '1'"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
5
]
}
},
"summary": "Added 'zero' identifier"
},
{
"span": {
"insert": {
"start": [
8,
8
],
"end": [
8,
9
]
}
},
"summary": "Added '0'"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
4
]
}
},
"summary": "Added 'one' identifier"
},
{
"span": {
"insert": {
"start": [
9,
7
],
"end": [
9,
8
]
}
},
"summary": "Added '1'"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-var-declarations.go"
],
"sha1": "6a5f08b65276caafa79d80e3535382b561ce7cf7",
"gitDir": "test/corpus/repos/go",
"sha2": "bfea6e38df8006e49ef0f1fb1b10c33485c19ab3"
}
,{
"testCaseDescription": "go-grouped-var-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"grouped-var-declarations.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
4,
1
],
"end": [
4,
5
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'zero' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
2
]
},
{
"start": [
5,
1
],
"end": [
5,
4
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'one' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-var-declarations.go"
],
"sha1": "bfea6e38df8006e49ef0f1fb1b10c33485c19ab3",
"gitDir": "test/corpus/repos/go",
"sha2": "66f10929a386076d993476a7b32549e08fab6d72"
}
,{
"testCaseDescription": "go-grouped-var-declarations-replacement-test",
"expectedResult": {
"changes": {
"grouped-var-declarations.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
5
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'zero' identifier with the 'a' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
4
]
},
{
"start": [
5,
1
],
"end": [
5,
2
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'b' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-var-declarations.go"
],
"sha1": "66f10929a386076d993476a7b32549e08fab6d72",
"gitDir": "test/corpus/repos/go",
"sha2": "29e8f1bdba9cc38f2f93e85f2f40c813deda0a22"
}
,{
"testCaseDescription": "go-grouped-var-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"grouped-var-declarations.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted 'a' identifier"
},
{
"span": {
"delete": {
"start": [
4,
5
],
"end": [
4,
6
]
}
},
"summary": "Deleted '0'"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted 'b' identifier"
},
{
"span": {
"delete": {
"start": [
5,
5
],
"end": [
5,
6
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
5
]
}
},
"summary": "Deleted 'zero' identifier"
},
{
"span": {
"delete": {
"start": [
8,
8
],
"end": [
8,
9
]
}
},
"summary": "Deleted '0'"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
4
]
}
},
"summary": "Deleted 'one' identifier"
},
{
"span": {
"delete": {
"start": [
9,
7
],
"end": [
9,
8
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
2
]
}
},
"summary": "Added 'a' identifier"
},
{
"span": {
"insert": {
"start": [
8,
5
],
"end": [
8,
6
]
}
},
"summary": "Added '0'"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
2
]
}
},
"summary": "Added 'b' identifier"
},
{
"span": {
"insert": {
"start": [
9,
5
],
"end": [
9,
6
]
}
},
"summary": "Added '1'"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-var-declarations.go"
],
"sha1": "29e8f1bdba9cc38f2f93e85f2f40c813deda0a22",
"gitDir": "test/corpus/repos/go",
"sha2": "b1f5464fff8aa7c2427fabe7427d7559566055d3"
}
,{
"testCaseDescription": "go-grouped-var-declarations-delete-test",
"expectedResult": {
"changes": {
"grouped-var-declarations.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
5
]
}
},
"summary": "Deleted 'zero' identifier"
},
{
"span": {
"delete": {
"start": [
4,
8
],
"end": [
4,
9
]
}
},
"summary": "Deleted '0'"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Deleted 'one' identifier"
},
{
"span": {
"delete": {
"start": [
5,
7
],
"end": [
5,
8
]
}
},
"summary": "Deleted '1'"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-var-declarations.go"
],
"sha1": "b1f5464fff8aa7c2427fabe7427d7559566055d3",
"gitDir": "test/corpus/repos/go",
"sha2": "57b5c47d8a78ef43056e5c1500fc442dfe2a467a"
}
,{
"testCaseDescription": "go-grouped-var-declarations-delete-rest-test",
"expectedResult": {
"changes": {
"grouped-var-declarations.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted 'a' identifier"
},
{
"span": {
"delete": {
"start": [
4,
5
],
"end": [
4,
6
]
}
},
"summary": "Deleted '0'"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted 'b' identifier"
},
{
"span": {
"delete": {
"start": [
5,
5
],
"end": [
5,
6
]
}
},
"summary": "Deleted '1'"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-var-declarations.go"
],
"sha1": "57b5c47d8a78ef43056e5c1500fc442dfe2a467a",
"gitDir": "test/corpus/repos/go",
"sha2": "201fd290f19184f934742f0a871f7a60e08ac617"
}]

File diff suppressed because it is too large Load Diff

View File

@ -25,9 +25,9 @@
"filePaths": [
"imaginary-literals.go"
],
"sha1": "a77421daec2a2b057cbc6c4600168313f7967363",
"sha1": "4d8db019f0affc179520ece1e0faabb84fdc1ac6",
"gitDir": "test/corpus/repos/go",
"sha2": "86512f969d13ad48e74788a6666cb382d4d100a8"
"sha2": "0ce85e6e841ec24b47841728e788dde7583c4c7a"
}
,{
"testCaseDescription": "go-imaginary-literals-replacement-insert-test",
@ -71,9 +71,9 @@
"filePaths": [
"imaginary-literals.go"
],
"sha1": "86512f969d13ad48e74788a6666cb382d4d100a8",
"sha1": "0ce85e6e841ec24b47841728e788dde7583c4c7a",
"gitDir": "test/corpus/repos/go",
"sha2": "452042aace37723f34917396ee4f38d1e9f0df87"
"sha2": "2e89ef4a6368df66f1db53946e86cd40e8f7d246"
}
,{
"testCaseDescription": "go-imaginary-literals-delete-insert-test",
@ -195,9 +195,9 @@
"filePaths": [
"imaginary-literals.go"
],
"sha1": "452042aace37723f34917396ee4f38d1e9f0df87",
"sha1": "2e89ef4a6368df66f1db53946e86cd40e8f7d246",
"gitDir": "test/corpus/repos/go",
"sha2": "046dfbd242abaa9537a400db74cfe6f37add22e1"
"sha2": "6987a5c55696043877d54d8a4aabbf18c3af4052"
}
,{
"testCaseDescription": "go-imaginary-literals-replacement-test",
@ -319,9 +319,9 @@
"filePaths": [
"imaginary-literals.go"
],
"sha1": "046dfbd242abaa9537a400db74cfe6f37add22e1",
"sha1": "6987a5c55696043877d54d8a4aabbf18c3af4052",
"gitDir": "test/corpus/repos/go",
"sha2": "bb06ccc4c6591acf444a6916f0f98ed207ec90e8"
"sha2": "18fff157667a442c0c418a5decbe5e4731c4e761"
}
,{
"testCaseDescription": "go-imaginary-literals-delete-replacement-test",
@ -380,9 +380,9 @@
"filePaths": [
"imaginary-literals.go"
],
"sha1": "bb06ccc4c6591acf444a6916f0f98ed207ec90e8",
"sha1": "18fff157667a442c0c418a5decbe5e4731c4e761",
"gitDir": "test/corpus/repos/go",
"sha2": "89eb47193ee859728fc3c4fabea1b7b9912a5f67"
"sha2": "72b94ef5b25d80fe8ab7eef2feb33e711fc49923"
}
,{
"testCaseDescription": "go-imaginary-literals-delete-test",
@ -411,9 +411,9 @@
"filePaths": [
"imaginary-literals.go"
],
"sha1": "89eb47193ee859728fc3c4fabea1b7b9912a5f67",
"sha1": "72b94ef5b25d80fe8ab7eef2feb33e711fc49923",
"gitDir": "test/corpus/repos/go",
"sha2": "cbb1ce832b2672cf54933256e2dc4271641f52ad"
"sha2": "d31174b5e817c1607160f17a187c5891f95cda72"
}
,{
"testCaseDescription": "go-imaginary-literals-delete-rest-test",
@ -442,7 +442,7 @@
"filePaths": [
"imaginary-literals.go"
],
"sha1": "cbb1ce832b2672cf54933256e2dc4271641f52ad",
"sha1": "d31174b5e817c1607160f17a187c5891f95cda72",
"gitDir": "test/corpus/repos/go",
"sha2": "5ded7c6ce2cb364f7b9b0a77fc5631267d11fa2a"
"sha2": "2e865019729977e8653deb314529d075eeb0bc75"
}]

View File

@ -0,0 +1,460 @@
[{
"testCaseDescription": "go-increment-decrement-statements-insert-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"sha1": "2dee7272ffa733b13265089eacbcc498aef9303d",
"gitDir": "test/corpus/repos/go",
"sha2": "31d71fd894d0b67e2b35623ae0f896a6bbdae824"
}
,{
"testCaseDescription": "go-increment-decrement-statements-replacement-insert-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
4
]
}
},
"summary": "Added the 'foo' identifier"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'i' identifier"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'j' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"sha1": "31d71fd894d0b67e2b35623ae0f896a6bbdae824",
"gitDir": "test/corpus/repos/go",
"sha2": "131ba11f38a80334e49831066017e48fc302333e"
}
,{
"testCaseDescription": "go-increment-decrement-statements-delete-insert-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
4
]
},
{
"start": [
3,
1
],
"end": [
3,
2
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'i' identifier"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'j' identifier"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'x' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"sha1": "131ba11f38a80334e49831066017e48fc302333e",
"gitDir": "test/corpus/repos/go",
"sha2": "bee29a0fb8d35f740df8d8d173f76a15713b1571"
}
,{
"testCaseDescription": "go-increment-decrement-statements-replacement-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
2
]
},
{
"start": [
3,
1
],
"end": [
3,
4
]
}
]
},
"summary": "Replaced the 'i' identifier with the 'foo' identifier"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'j' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"sha1": "bee29a0fb8d35f740df8d8d173f76a15713b1571",
"gitDir": "test/corpus/repos/go",
"sha2": "c273d4a4fda113cc7ee6bb246bc6ed92aeac1478"
}
,{
"testCaseDescription": "go-increment-decrement-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted the 'foo' identifier"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'i' identifier"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'j' identifier"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Added the 'foo' identifier"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'x' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"sha1": "c273d4a4fda113cc7ee6bb246bc6ed92aeac1478",
"gitDir": "test/corpus/repos/go",
"sha2": "d6724cb8b96f1e3139e73b121fe5c34f7ed1e37a"
}
,{
"testCaseDescription": "go-increment-decrement-statements-delete-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Deleted the 'i' identifier"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'j' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"sha1": "d6724cb8b96f1e3139e73b121fe5c34f7ed1e37a",
"gitDir": "test/corpus/repos/go",
"sha2": "117d3c5b56c0628fc1d3e6a5b4c7c7ffe80c75e8"
}
,{
"testCaseDescription": "go-increment-decrement-statements-delete-rest-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"sha1": "117d3c5b56c0628fc1d3e6a5b4c7c7ffe80c75e8",
"gitDir": "test/corpus/repos/go",
"sha2": "67322b2d55292367c6f6b5f25adebb20c11282c1"
}]

View File

@ -1,91 +0,0 @@
[{
"testCaseDescription": "go-indexing expressions-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"indexing expressions.go"
],
"sha1": "db2d6da6c473a3d7fb8039e9cc10f1ecea839f40",
"gitDir": "test/corpus/repos/go",
"sha2": "d6f577c20a5269905619d6536aee605dfe0364f6"
}
,{
"testCaseDescription": "go-indexing expressions-replacement-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"indexing expressions.go"
],
"sha1": "d6f577c20a5269905619d6536aee605dfe0364f6",
"gitDir": "test/corpus/repos/go",
"sha2": "9137197cdea3166af43d1d92382b092f3da33aea"
}
,{
"testCaseDescription": "go-indexing expressions-delete-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"indexing expressions.go"
],
"sha1": "9137197cdea3166af43d1d92382b092f3da33aea",
"gitDir": "test/corpus/repos/go",
"sha2": "2de1b167dd2a054c603d02a72ec0b5e16312173f"
}
,{
"testCaseDescription": "go-indexing expressions-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"indexing expressions.go"
],
"sha1": "2de1b167dd2a054c603d02a72ec0b5e16312173f",
"gitDir": "test/corpus/repos/go",
"sha2": "dcc3865cb0658fa1e55dc87a8187da2e01a98e7d"
}
,{
"testCaseDescription": "go-indexing expressions-delete-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"indexing expressions.go"
],
"sha1": "dcc3865cb0658fa1e55dc87a8187da2e01a98e7d",
"gitDir": "test/corpus/repos/go",
"sha2": "5a848d190b7a316ba2d44a64371eec7f67d0c8be"
}
,{
"testCaseDescription": "go-indexing expressions-delete-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"indexing expressions.go"
],
"sha1": "5a848d190b7a316ba2d44a64371eec7f67d0c8be",
"gitDir": "test/corpus/repos/go",
"sha2": "d0b87dda59d1fbdf63e6573062e3b2d8f017000d"
}
,{
"testCaseDescription": "go-indexing expressions-delete-rest-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"indexing expressions.go"
],
"sha1": "d0b87dda59d1fbdf63e6573062e3b2d8f017000d",
"gitDir": "test/corpus/repos/go",
"sha2": "fe04af2ad66201c4f472821797ba453c97a710e6"
}]

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,8 @@
[{
"testCaseDescription": "go-int-literal-insert-test",
"testCaseDescription": "go-int-literals-insert-test",
"expectedResult": {
"changes": {
"int-literal.go": [
"int-literals.go": [
{
"span": {
"insert": {
@ -23,17 +23,17 @@
"errors": {}
},
"filePaths": [
"int-literal.go"
"int-literals.go"
],
"sha1": "c517d0acb98bcbef49c0f5bf480fbb868ee06ae3",
"sha1": "1e46a5b2a110b9f3e75dea0e057e1199b1af8818",
"gitDir": "test/corpus/repos/go",
"sha2": "b1ab0ddb550e59aa69a13090c8251fd602556adc"
"sha2": "b96ba35c2bbdf351fc3db37853d71f845cc2e773"
}
,{
"testCaseDescription": "go-int-literal-replacement-insert-test",
"testCaseDescription": "go-int-literals-replacement-insert-test",
"expectedResult": {
"changes": {
"int-literal.go": [
"int-literals.go": [
{
"span": {
"insert": {
@ -69,17 +69,17 @@
"errors": {}
},
"filePaths": [
"int-literal.go"
"int-literals.go"
],
"sha1": "b1ab0ddb550e59aa69a13090c8251fd602556adc",
"sha1": "b96ba35c2bbdf351fc3db37853d71f845cc2e773",
"gitDir": "test/corpus/repos/go",
"sha2": "1310e8dddb038c25e103bd20478fc6f309cb3e83"
"sha2": "8ef7ca59f28eed0017a1b10439cbd91d24e613bb"
}
,{
"testCaseDescription": "go-int-literal-delete-insert-test",
"testCaseDescription": "go-int-literals-delete-insert-test",
"expectedResult": {
"changes": {
"int-literal.go": [
"int-literals.go": [
{
"span": {
"replace": [
@ -139,17 +139,17 @@
"errors": {}
},
"filePaths": [
"int-literal.go"
"int-literals.go"
],
"sha1": "1310e8dddb038c25e103bd20478fc6f309cb3e83",
"sha1": "8ef7ca59f28eed0017a1b10439cbd91d24e613bb",
"gitDir": "test/corpus/repos/go",
"sha2": "bc2f43c485e347789faba38ce487203241701051"
"sha2": "6565f79c44091cdf88dd8f5e1700dd577d2bc9f0"
}
,{
"testCaseDescription": "go-int-literal-replacement-test",
"testCaseDescription": "go-int-literals-replacement-test",
"expectedResult": {
"changes": {
"int-literal.go": [
"int-literals.go": [
{
"span": {
"replace": [
@ -209,17 +209,17 @@
"errors": {}
},
"filePaths": [
"int-literal.go"
"int-literals.go"
],
"sha1": "bc2f43c485e347789faba38ce487203241701051",
"sha1": "6565f79c44091cdf88dd8f5e1700dd577d2bc9f0",
"gitDir": "test/corpus/repos/go",
"sha2": "5d240ff1e1cba4e0ca92438b25b6c5cb806eb08a"
"sha2": "46f35f292311123b68209ec94b2926c5fe380cf2"
}
,{
"testCaseDescription": "go-int-literal-delete-replacement-test",
"testCaseDescription": "go-int-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"int-literal.go": [
"int-literals.go": [
{
"span": {
"delete": {
@ -270,17 +270,17 @@
"errors": {}
},
"filePaths": [
"int-literal.go"
"int-literals.go"
],
"sha1": "5d240ff1e1cba4e0ca92438b25b6c5cb806eb08a",
"sha1": "46f35f292311123b68209ec94b2926c5fe380cf2",
"gitDir": "test/corpus/repos/go",
"sha2": "1dbfbb5f4aced649905ed0a192447be057d934f0"
"sha2": "b5f8cde9461b71c3e2a04267191e9f1c59203371"
}
,{
"testCaseDescription": "go-int-literal-delete-test",
"testCaseDescription": "go-int-literals-delete-test",
"expectedResult": {
"changes": {
"int-literal.go": [
"int-literals.go": [
{
"span": {
"delete": {
@ -301,17 +301,17 @@
"errors": {}
},
"filePaths": [
"int-literal.go"
"int-literals.go"
],
"sha1": "1dbfbb5f4aced649905ed0a192447be057d934f0",
"sha1": "b5f8cde9461b71c3e2a04267191e9f1c59203371",
"gitDir": "test/corpus/repos/go",
"sha2": "d692e806304dc58ba02846cc831eef017e6c1e56"
"sha2": "066b2fb1e6af7bbb3f3f9f6a66036085edacdff7"
}
,{
"testCaseDescription": "go-int-literal-delete-rest-test",
"testCaseDescription": "go-int-literals-delete-rest-test",
"expectedResult": {
"changes": {
"int-literal.go": [
"int-literals.go": [
{
"span": {
"delete": {
@ -332,9 +332,9 @@
"errors": {}
},
"filePaths": [
"int-literal.go"
"int-literals.go"
],
"sha1": "d692e806304dc58ba02846cc831eef017e6c1e56",
"sha1": "066b2fb1e6af7bbb3f3f9f6a66036085edacdff7",
"gitDir": "test/corpus/repos/go",
"sha2": "8f13696c49fad55aab85d6533dd781bf28a01fc7"
"sha2": "4d0492f068be99d352becf315c53599b1b28b4d8"
}]

File diff suppressed because it is too large Load Diff

View File

@ -1,39 +1,39 @@
[{
"testCaseDescription": "go-function-call-insert-test",
"testCaseDescription": "go-label-statements-insert-test",
"expectedResult": {
"changes": {
"function-call.go": [
"label-statements.go": [
{
"span": {
"insert": {
"start": [
3,
1
4,
3
],
"end": [
3,
4
4,
15
]
}
},
"summary": "Added the 'a()' function call"
"summary": "Added the 'insert_label' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.go"
"label-statements.go"
],
"sha1": "914e6a5d1b9382291702d5919357687ee4e01fa5",
"sha1": "dd2280226ef4eb28046774a110cb8a46711883f5",
"gitDir": "test/corpus/repos/go",
"sha2": "774cdf502cd390fbf4566e80b028ffcb3d5b7e72"
"sha2": "cd9e6d273bb601b2eb53de29ace35c04c1e9e21f"
}
,{
"testCaseDescription": "go-function-call-replacement-insert-test",
"testCaseDescription": "go-label-statements-replacement-insert-test",
"expectedResult": {
"changes": {
"function-call.go": [
"label-statements.go": [
{
"span": {
"replace": [
@ -43,7 +43,7 @@
1
],
"end": [
4,
6,
1
]
},
@ -66,164 +66,164 @@
"errors": {}
},
"filePaths": [
"function-call.go"
"label-statements.go"
],
"sha1": "774cdf502cd390fbf4566e80b028ffcb3d5b7e72",
"sha1": "cd9e6d273bb601b2eb53de29ace35c04c1e9e21f",
"gitDir": "test/corpus/repos/go",
"sha2": "49342eb5244e1d625eae9f8f2a2dd1b878a40647"
"sha2": "36a0ebbf82eda0a38e9a7b5a92ea6a60f241c23e"
}
,{
"testCaseDescription": "go-function-call-delete-insert-test",
"testCaseDescription": "go-label-statements-delete-insert-test",
"expectedResult": {
"changes": {
"function-call.go": [
"label-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
1
4,
3
],
"end": [
3,
2
4,
20
]
},
{
"start": [
3,
1
4,
3
],
"end": [
3,
2
4,
15
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier in the a() function call"
"summary": "Replaced the 'replacement_label' identifier with the 'insert_label' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.go"
"label-statements.go"
],
"sha1": "49342eb5244e1d625eae9f8f2a2dd1b878a40647",
"sha1": "36a0ebbf82eda0a38e9a7b5a92ea6a60f241c23e",
"gitDir": "test/corpus/repos/go",
"sha2": "3a3f22d550db10ed04b3ebfb31dca7b6cac169ff"
"sha2": "282b67ffeadadbb27d50ec5ad7048fe17a21931f"
}
,{
"testCaseDescription": "go-function-call-replacement-test",
"testCaseDescription": "go-label-statements-replacement-test",
"expectedResult": {
"changes": {
"function-call.go": [
"label-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
1
4,
3
],
"end": [
3,
2
4,
15
]
},
{
"start": [
3,
1
4,
3
],
"end": [
3,
2
4,
20
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier in the b() function call"
"summary": "Replaced the 'insert_label' identifier with the 'replacement_label' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.go"
"label-statements.go"
],
"sha1": "3a3f22d550db10ed04b3ebfb31dca7b6cac169ff",
"sha1": "282b67ffeadadbb27d50ec5ad7048fe17a21931f",
"gitDir": "test/corpus/repos/go",
"sha2": "9ae2ff8c60faf4be106e7218750ec560f2844c9f"
"sha2": "ac724ccb0bd7b99e46a930ad2f65e86634a67df6"
}
,{
"testCaseDescription": "go-function-call-delete-replacement-test",
"testCaseDescription": "go-label-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"function-call.go": [
"label-statements.go": [
{
"span": {
"delete": {
"start": [
3,
1
4,
3
],
"end": [
3,
4
4,
20
]
}
},
"summary": "Deleted the 'b()' function call"
"summary": "Deleted the 'replacement_label' identifier"
},
{
"span": {
"delete": {
"start": [
4,
1
7,
3
],
"end": [
4,
4
7,
15
]
}
},
"summary": "Deleted the 'a()' function call"
"summary": "Deleted the 'insert_label' identifier"
},
{
"span": {
"insert": {
"start": [
4,
1
7,
3
],
"end": [
4,
4
7,
20
]
}
},
"summary": "Added the 'b()' function call"
"summary": "Added the 'replacement_label' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.go"
"label-statements.go"
],
"sha1": "9ae2ff8c60faf4be106e7218750ec560f2844c9f",
"sha1": "ac724ccb0bd7b99e46a930ad2f65e86634a67df6",
"gitDir": "test/corpus/repos/go",
"sha2": "7ba25460df3c68634ff52f48955dfe693e63793f"
"sha2": "7a03bb82d40dddfeeed1523ccb0fc8f8ee84078c"
}
,{
"testCaseDescription": "go-function-call-delete-test",
"testCaseDescription": "go-label-statements-delete-test",
"expectedResult": {
"changes": {
"function-call.go": [
"label-statements.go": [
{
"span": {
"replace": [
@ -243,7 +243,7 @@
1
],
"end": [
4,
6,
1
]
}
@ -256,40 +256,40 @@
"errors": {}
},
"filePaths": [
"function-call.go"
"label-statements.go"
],
"sha1": "7ba25460df3c68634ff52f48955dfe693e63793f",
"sha1": "7a03bb82d40dddfeeed1523ccb0fc8f8ee84078c",
"gitDir": "test/corpus/repos/go",
"sha2": "6e252f72f50342623013a49245ea0abb8cbb0d2c"
"sha2": "88199fe16d64e0f3a56b7014684138b974ac4151"
}
,{
"testCaseDescription": "go-function-call-delete-rest-test",
"testCaseDescription": "go-label-statements-delete-rest-test",
"expectedResult": {
"changes": {
"function-call.go": [
"label-statements.go": [
{
"span": {
"delete": {
"start": [
3,
1
4,
3
],
"end": [
3,
4
4,
20
]
}
},
"summary": "Deleted the 'b()' function call"
"summary": "Deleted the 'replacement_label' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"function-call.go"
"label-statements.go"
],
"sha1": "6e252f72f50342623013a49245ea0abb8cbb0d2c",
"sha1": "88199fe16d64e0f3a56b7014684138b974ac4151",
"gitDir": "test/corpus/repos/go",
"sha2": "e8d9a5830549173894d2d7034cb51dd0e1f87e46"
"sha2": "540bda00930627c7abe0e448825fe9cf179bee4b"
}]

View File

@ -0,0 +1,736 @@
[{
"testCaseDescription": "go-map-literals-insert-test",
"expectedResult": {
"changes": {
"map-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
"map-literals.go"
],
"sha1": "4cc07d2c2fc6d899391f2fab08790a502ae4d16a",
"gitDir": "test/corpus/repos/go",
"sha2": "abd9c423a7700ffa08f43d6fcd7e9bfcbc435137"
}
,{
"testCaseDescription": "go-map-literals-replacement-insert-test",
"expectedResult": {
"changes": {
"map-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'variable' variable"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
"map-literals.go"
],
"sha1": "abd9c423a7700ffa08f43d6fcd7e9bfcbc435137",
"gitDir": "test/corpus/repos/go",
"sha2": "b38354d465be1239fdaea3f7ffb60d5d1ab596e0"
}
,{
"testCaseDescription": "go-map-literals-delete-insert-test",
"expectedResult": {
"changes": {
"map-literals.go": [
{
"span": {
"replace": [
{
"start": [
3,
22
],
"end": [
3,
25
]
},
{
"start": [
3,
15
],
"end": [
3,
21
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the const s = map[string]string{\n\"hi\": \"hello\",\n\"bye\": \"goodbye\",\n} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
6
]
},
{
"start": [
4,
1
],
"end": [
4,
5
]
}
]
},
"summary": "Replaced the \"foo\" string with the \"hi\" string in the const s = map[string]string{\n\"hi\": \"hello\",\n\"bye\": \"goodbye\",\n} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
13
]
},
{
"start": [
4,
7
],
"end": [
4,
14
]
}
]
},
"summary": "Replaced the \"bar\" string with the \"hello\" string in the const s = map[string]string{\n\"hi\": \"hello\",\n\"bye\": \"goodbye\",\n} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
6
]
},
{
"start": [
5,
1
],
"end": [
5,
6
]
}
]
},
"summary": "Replaced the \"baz\" string with the \"bye\" string in the const s = map[string]string{\n\"hi\": \"hello\",\n\"bye\": \"goodbye\",\n} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
5,
8
],
"end": [
5,
15
]
},
{
"start": [
5,
8
],
"end": [
5,
17
]
}
]
},
"summary": "Replaced the \"hello\" string with the \"goodbye\" string in the const s = map[string]string{\n\"hi\": \"hello\",\n\"bye\": \"goodbye\",\n} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
3,
22
],
"end": [
3,
25
]
},
{
"start": [
3,
15
],
"end": [
3,
21
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the const s = map[string]string{\n\"hi\": \"hello\",\n\"bye\": \"goodbye\",\n} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
6
]
},
{
"start": [
4,
1
],
"end": [
4,
5
]
}
]
},
"summary": "Replaced the \"foo\" string with the \"hi\" string in the const s = map[string]string{\n\"hi\": \"hello\",\n\"bye\": \"goodbye\",\n} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
13
]
},
{
"start": [
4,
7
],
"end": [
4,
14
]
}
]
},
"summary": "Replaced the \"bar\" string with the \"hello\" string in the const s = map[string]string{\n\"hi\": \"hello\",\n\"bye\": \"goodbye\",\n} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
6
]
},
{
"start": [
5,
1
],
"end": [
5,
6
]
}
]
},
"summary": "Replaced the \"baz\" string with the \"bye\" string in the const s = map[string]string{\n\"hi\": \"hello\",\n\"bye\": \"goodbye\",\n} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
5,
8
],
"end": [
5,
15
]
},
{
"start": [
5,
8
],
"end": [
5,
17
]
}
]
},
"summary": "Replaced the \"hello\" string with the \"goodbye\" string in the const s = map[string]string{\n\"hi\": \"hello\",\n\"bye\": \"goodbye\",\n} variable of the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"map-literals.go"
],
"sha1": "b38354d465be1239fdaea3f7ffb60d5d1ab596e0",
"gitDir": "test/corpus/repos/go",
"sha2": "04fc6d17dec4ee9cba05030df8107d0ffead0ba7"
}
,{
"testCaseDescription": "go-map-literals-replacement-test",
"expectedResult": {
"changes": {
"map-literals.go": [
{
"span": {
"delete": {
"start": [
3,
15
],
"end": [
3,
21
]
}
},
"summary": "Deleted the 'string' identifier in the const s = map[string]int{\n\"foo\": \"bar\",\n\"baz\": \"hello\",\n} variable of the 'main' module statement"
},
{
"span": {
"insert": {
"start": [
3,
22
],
"end": [
3,
25
]
}
},
"summary": "Added the 'int' identifier in the const s = map[string]int{\n\"foo\": \"bar\",\n\"baz\": \"hello\",\n} variable of the 'main' module statement"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added the \"foo\" string in the const s = map[string]int{\n\"foo\": \"bar\",\n\"baz\": \"hello\",\n} variable of the 'main' module statement"
},
{
"span": {
"insert": {
"start": [
4,
8
],
"end": [
4,
13
]
}
},
"summary": "Added the \"bar\" string in the const s = map[string]int{\n\"foo\": \"bar\",\n\"baz\": \"hello\",\n} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
5
]
},
{
"start": [
5,
1
],
"end": [
5,
6
]
}
]
},
"summary": "Replaced the \"hi\" string with the \"baz\" string in the const s = map[string]int{\n\"foo\": \"bar\",\n\"baz\": \"hello\",\n} variable of the 'main' module statement"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
6
]
}
},
"summary": "Deleted the \"bye\" string in the const s = map[string]int{\n\"foo\": \"bar\",\n\"baz\": \"hello\",\n} variable of the 'main' module statement"
},
{
"span": {
"delete": {
"start": [
5,
8
],
"end": [
5,
17
]
}
},
"summary": "Deleted the \"goodbye\" string in the const s = map[string]int{\n\"foo\": \"bar\",\n\"baz\": \"hello\",\n} variable of the 'main' module statement"
},
{
"span": {
"delete": {
"start": [
3,
15
],
"end": [
3,
21
]
}
},
"summary": "Deleted the 'string' identifier in the const s = map[string]int{\n\"foo\": \"bar\",\n\"baz\": \"hello\",\n} variable of the 'main' module statement"
},
{
"span": {
"insert": {
"start": [
3,
22
],
"end": [
3,
25
]
}
},
"summary": "Added the 'int' identifier in the const s = map[string]int{\n\"foo\": \"bar\",\n\"baz\": \"hello\",\n} variable of the 'main' module statement"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
6
]
}
},
"summary": "Added the \"foo\" string in the const s = map[string]int{\n\"foo\": \"bar\",\n\"baz\": \"hello\",\n} variable of the 'main' module statement"
},
{
"span": {
"insert": {
"start": [
4,
8
],
"end": [
4,
13
]
}
},
"summary": "Added the \"bar\" string in the const s = map[string]int{\n\"foo\": \"bar\",\n\"baz\": \"hello\",\n} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
5
]
},
{
"start": [
5,
1
],
"end": [
5,
6
]
}
]
},
"summary": "Replaced the \"hi\" string with the \"baz\" string in the const s = map[string]int{\n\"foo\": \"bar\",\n\"baz\": \"hello\",\n} variable of the 'main' module statement"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
6
]
}
},
"summary": "Deleted the \"bye\" string in the const s = map[string]int{\n\"foo\": \"bar\",\n\"baz\": \"hello\",\n} variable of the 'main' module statement"
},
{
"span": {
"delete": {
"start": [
5,
8
],
"end": [
5,
17
]
}
},
"summary": "Deleted the \"goodbye\" string in the const s = map[string]int{\n\"foo\": \"bar\",\n\"baz\": \"hello\",\n} variable of the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"map-literals.go"
],
"sha1": "04fc6d17dec4ee9cba05030df8107d0ffead0ba7",
"gitDir": "test/corpus/repos/go",
"sha2": "ad8284679f4b5b6c4b9ea579e7791f88442bbbb9"
}
,{
"testCaseDescription": "go-map-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"map-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'variable' variable"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted the 'variable' variable"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
10,
2
]
}
},
"summary": "Added the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
"map-literals.go"
],
"sha1": "ad8284679f4b5b6c4b9ea579e7791f88442bbbb9",
"gitDir": "test/corpus/repos/go",
"sha2": "5f01bbf00c4592f1d024204388353fd572c5edbb"
}
,{
"testCaseDescription": "go-map-literals-delete-test",
"expectedResult": {
"changes": {
"map-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
"map-literals.go"
],
"sha1": "5f01bbf00c4592f1d024204388353fd572c5edbb",
"gitDir": "test/corpus/repos/go",
"sha2": "966d5175d4989d2859621dda411e69a54008d4e1"
}
,{
"testCaseDescription": "go-map-literals-delete-rest-test",
"expectedResult": {
"changes": {
"map-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
"map-literals.go"
],
"sha1": "966d5175d4989d2859621dda411e69a54008d4e1",
"gitDir": "test/corpus/repos/go",
"sha2": "f7083d14f624ce9be09c89052dc5cdb40f37c3fe"
}]

View File

@ -0,0 +1,526 @@
[{
"testCaseDescription": "go-map-types-insert-test",
"expectedResult": {
"changes": {
"map-types.go": [
{
"span": {
"insert": {
"start": [
3,
6
],
"end": [
3,
8
]
}
},
"summary": "Added the 'm1' identifier"
},
{
"span": {
"insert": {
"start": [
3,
13
],
"end": [
3,
19
]
}
},
"summary": "Added the 'string' identifier"
},
{
"span": {
"insert": {
"start": [
3,
20
],
"end": [
3,
25
]
}
},
"summary": "Added the 'error' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"map-types.go"
],
"sha1": "853d35d10d7b906dad140671cabab4a1695910e3",
"gitDir": "test/corpus/repos/go",
"sha2": "35e114c35ca0f09d76513eb391912c417e5f21ac"
}
,{
"testCaseDescription": "go-map-types-replacement-insert-test",
"expectedResult": {
"changes": {
"map-types.go": [
{
"span": {
"insert": {
"start": [
3,
6
],
"end": [
3,
8
]
}
},
"summary": "Added the 'm1' identifier"
},
{
"span": {
"insert": {
"start": [
3,
13
],
"end": [
3,
16
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
3,
17
],
"end": [
3,
22
]
}
},
"summary": "Added the 'error' identifier"
},
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
8
]
}
},
"summary": "Added the 'm1' identifier"
},
{
"span": {
"insert": {
"start": [
4,
13
],
"end": [
4,
19
]
}
},
"summary": "Added the 'string' identifier"
},
{
"span": {
"insert": {
"start": [
4,
20
],
"end": [
4,
25
]
}
},
"summary": "Added the 'error' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"map-types.go"
],
"sha1": "35e114c35ca0f09d76513eb391912c417e5f21ac",
"gitDir": "test/corpus/repos/go",
"sha2": "41aa5140ae393d8aca11fbda682b2fe6b4cb7378"
}
,{
"testCaseDescription": "go-map-types-delete-insert-test",
"expectedResult": {
"changes": {
"map-types.go": [
{
"span": {
"replace": [
{
"start": [
3,
13
],
"end": [
3,
16
]
},
{
"start": [
3,
13
],
"end": [
3,
19
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"map-types.go"
],
"sha1": "41aa5140ae393d8aca11fbda682b2fe6b4cb7378",
"gitDir": "test/corpus/repos/go",
"sha2": "c22c38bf9f3c293315388bcc9b58449fec90ed15"
}
,{
"testCaseDescription": "go-map-types-replacement-test",
"expectedResult": {
"changes": {
"map-types.go": [
{
"span": {
"replace": [
{
"start": [
3,
13
],
"end": [
3,
19
]
},
{
"start": [
3,
13
],
"end": [
3,
16
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"map-types.go"
],
"sha1": "c22c38bf9f3c293315388bcc9b58449fec90ed15",
"gitDir": "test/corpus/repos/go",
"sha2": "b05ba372fe270ff474375edcb0bccde6d5b73454"
}
,{
"testCaseDescription": "go-map-types-delete-replacement-test",
"expectedResult": {
"changes": {
"map-types.go": [
{
"span": {
"delete": {
"start": [
3,
6
],
"end": [
3,
8
]
}
},
"summary": "Deleted the 'm1' identifier"
},
{
"span": {
"delete": {
"start": [
3,
13
],
"end": [
3,
16
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
3,
17
],
"end": [
3,
22
]
}
},
"summary": "Deleted the 'error' identifier"
},
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
8
]
}
},
"summary": "Deleted the 'm1' identifier"
},
{
"span": {
"delete": {
"start": [
4,
13
],
"end": [
4,
19
]
}
},
"summary": "Deleted the 'string' identifier"
},
{
"span": {
"delete": {
"start": [
4,
20
],
"end": [
4,
25
]
}
},
"summary": "Deleted the 'error' identifier"
},
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
8
]
}
},
"summary": "Added the 'm1' identifier"
},
{
"span": {
"insert": {
"start": [
4,
13
],
"end": [
4,
16
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
4,
17
],
"end": [
4,
22
]
}
},
"summary": "Added the 'error' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"map-types.go"
],
"sha1": "b05ba372fe270ff474375edcb0bccde6d5b73454",
"gitDir": "test/corpus/repos/go",
"sha2": "c0c26a608cf93ee9bc3bdd190fffc3f57ee53ee6"
}
,{
"testCaseDescription": "go-map-types-delete-test",
"expectedResult": {
"changes": {
"map-types.go": [
{
"span": {
"delete": {
"start": [
3,
6
],
"end": [
3,
8
]
}
},
"summary": "Deleted the 'm1' identifier"
},
{
"span": {
"delete": {
"start": [
3,
13
],
"end": [
3,
19
]
}
},
"summary": "Deleted the 'string' identifier"
},
{
"span": {
"delete": {
"start": [
3,
20
],
"end": [
3,
25
]
}
},
"summary": "Deleted the 'error' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"map-types.go"
],
"sha1": "c0c26a608cf93ee9bc3bdd190fffc3f57ee53ee6",
"gitDir": "test/corpus/repos/go",
"sha2": "b4d68dbf808819f9a9d1fe711df06c457fc4b322"
}
,{
"testCaseDescription": "go-map-types-delete-rest-test",
"expectedResult": {
"changes": {
"map-types.go": [
{
"span": {
"delete": {
"start": [
3,
6
],
"end": [
3,
8
]
}
},
"summary": "Deleted the 'm1' identifier"
},
{
"span": {
"delete": {
"start": [
3,
13
],
"end": [
3,
16
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
3,
17
],
"end": [
3,
22
]
}
},
"summary": "Deleted the 'error' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"map-types.go"
],
"sha1": "b4d68dbf808819f9a9d1fe711df06c457fc4b322",
"gitDir": "test/corpus/repos/go",
"sha2": "4a13db771ec31b8fdb5f87d7f8f51cdec1a8bc7d"
}]

View File

@ -115,9 +115,9 @@
"filePaths": [
"method-declarations.go"
],
"sha1": "0031d7891be1930ec7d0c1e37ea18c12fc53f609",
"sha1": "fab9e0aec724df9646eee5367a1979f69fe1970f",
"gitDir": "test/corpus/repos/go",
"sha2": "eec16bc58a0088800f036f2e4b9d4f13f199eb93"
"sha2": "27d01bc97666fd2fe19a5c52823810786a33ac59"
}
,{
"testCaseDescription": "go-method-declarations-replacement-insert-test",
@ -341,9 +341,9 @@
"filePaths": [
"method-declarations.go"
],
"sha1": "eec16bc58a0088800f036f2e4b9d4f13f199eb93",
"sha1": "27d01bc97666fd2fe19a5c52823810786a33ac59",
"gitDir": "test/corpus/repos/go",
"sha2": "424493963aaba49f06f2ef72c8808ed178a8646f"
"sha2": "5b31c44fcc3e9f6728afdb9fb95f10e473d19821"
}
,{
"testCaseDescription": "go-method-declarations-delete-insert-test",
@ -411,9 +411,9 @@
"filePaths": [
"method-declarations.go"
],
"sha1": "424493963aaba49f06f2ef72c8808ed178a8646f",
"sha1": "5b31c44fcc3e9f6728afdb9fb95f10e473d19821",
"gitDir": "test/corpus/repos/go",
"sha2": "47e926c4ff74cd7765be247a52fde42fa5dc099f"
"sha2": "dbd1c9946a39c2d6bcadd1cd0d61b44f9faedf4e"
}
,{
"testCaseDescription": "go-method-declarations-replacement-test",
@ -481,9 +481,9 @@
"filePaths": [
"method-declarations.go"
],
"sha1": "47e926c4ff74cd7765be247a52fde42fa5dc099f",
"sha1": "dbd1c9946a39c2d6bcadd1cd0d61b44f9faedf4e",
"gitDir": "test/corpus/repos/go",
"sha2": "9380300b374a78e53c0b3881a9cd0c7c5dbebb65"
"sha2": "957925125cdf93d1696fc85bceecb1a12fb77e0e"
}
,{
"testCaseDescription": "go-method-declarations-delete-replacement-test",
@ -812,9 +812,9 @@
"filePaths": [
"method-declarations.go"
],
"sha1": "9380300b374a78e53c0b3881a9cd0c7c5dbebb65",
"sha1": "957925125cdf93d1696fc85bceecb1a12fb77e0e",
"gitDir": "test/corpus/repos/go",
"sha2": "ba4d720e38c037ef5505d083b715bff0f1be1573"
"sha2": "b934e564b04bccdbabae4c3ec9706d7cefcebbce"
}
,{
"testCaseDescription": "go-method-declarations-delete-test",
@ -933,9 +933,9 @@
"filePaths": [
"method-declarations.go"
],
"sha1": "ba4d720e38c037ef5505d083b715bff0f1be1573",
"sha1": "b934e564b04bccdbabae4c3ec9706d7cefcebbce",
"gitDir": "test/corpus/repos/go",
"sha2": "5b1fbd48a8e9ccd047ddaf32637574a13119834e"
"sha2": "08a3a68e2022166133d84b64d65633ab70e98406"
}
,{
"testCaseDescription": "go-method-declarations-delete-rest-test",
@ -1054,7 +1054,7 @@
"filePaths": [
"method-declarations.go"
],
"sha1": "5b1fbd48a8e9ccd047ddaf32637574a13119834e",
"sha1": "08a3a68e2022166133d84b64d65633ab70e98406",
"gitDir": "test/corpus/repos/go",
"sha2": "db3818ebee273257e37e5a8d637fa64cbd261d27"
"sha2": "539b2342fb439592df8f001e686ee4a1a76ff91b"
}]

View File

@ -0,0 +1,700 @@
[{
"testCaseDescription": "go-pointer-types-insert-test",
"expectedResult": {
"changes": {
"pointer-types.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
3
]
}
},
"summary": "Added the 'p1' identifier"
},
{
"span": {
"insert": {
"start": [
4,
5
],
"end": [
4,
11
]
}
},
"summary": "Added the 'string' identifier"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
3
]
}
},
"summary": "Added the 'p2' identifier"
},
{
"span": {
"insert": {
"start": [
5,
6
],
"end": [
5,
8
]
}
},
"summary": "Added the 'p1' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"pointer-types.go"
],
"sha1": "f269f3775b29cbe18eb2600af2a9c9d6ed480494",
"gitDir": "test/corpus/repos/go",
"sha2": "6e1f0741502072073d2000be6344b398c678c956"
}
,{
"testCaseDescription": "go-pointer-types-replacement-insert-test",
"expectedResult": {
"changes": {
"pointer-types.go": [
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
3
]
}
},
"summary": "Added the 'p1' identifier"
},
{
"span": {
"insert": {
"start": [
4,
5
],
"end": [
4,
8
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
3
]
}
},
"summary": "Added the 'p2' identifier"
},
{
"span": {
"insert": {
"start": [
5,
6
],
"end": [
5,
8
]
}
},
"summary": "Added the 'p3' identifier"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
3
]
}
},
"summary": "Added the 'p1' identifier"
},
{
"span": {
"insert": {
"start": [
8,
5
],
"end": [
8,
11
]
}
},
"summary": "Added the 'string' identifier"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
3
]
}
},
"summary": "Added the 'p2' identifier"
},
{
"span": {
"insert": {
"start": [
9,
6
],
"end": [
9,
8
]
}
},
"summary": "Added the 'p1' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"pointer-types.go"
],
"sha1": "6e1f0741502072073d2000be6344b398c678c956",
"gitDir": "test/corpus/repos/go",
"sha2": "19ed631f86c2052d088f11e613c8afbd6e4eff02"
}
,{
"testCaseDescription": "go-pointer-types-delete-insert-test",
"expectedResult": {
"changes": {
"pointer-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
8
]
},
{
"start": [
4,
5
],
"end": [
4,
11
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
8
]
},
{
"start": [
5,
6
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 'p3' identifier with the 'p1' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"pointer-types.go"
],
"sha1": "19ed631f86c2052d088f11e613c8afbd6e4eff02",
"gitDir": "test/corpus/repos/go",
"sha2": "4c88baf88b170dab7b03c6bd4e8201cf932f5c59"
}
,{
"testCaseDescription": "go-pointer-types-replacement-test",
"expectedResult": {
"changes": {
"pointer-types.go": [
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
11
]
},
{
"start": [
4,
5
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
8
]
},
{
"start": [
5,
6
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 'p1' identifier with the 'p3' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"pointer-types.go"
],
"sha1": "4c88baf88b170dab7b03c6bd4e8201cf932f5c59",
"gitDir": "test/corpus/repos/go",
"sha2": "d2a3c92037c86f62abc217382e816fadbd0005e6"
}
,{
"testCaseDescription": "go-pointer-types-delete-replacement-test",
"expectedResult": {
"changes": {
"pointer-types.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
3
]
}
},
"summary": "Deleted the 'p1' identifier"
},
{
"span": {
"delete": {
"start": [
4,
5
],
"end": [
4,
8
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
3
]
}
},
"summary": "Deleted the 'p2' identifier"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
8
]
}
},
"summary": "Deleted the 'p3' identifier"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
3
]
}
},
"summary": "Deleted the 'p1' identifier"
},
{
"span": {
"delete": {
"start": [
8,
5
],
"end": [
8,
11
]
}
},
"summary": "Deleted the 'string' identifier"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
3
]
}
},
"summary": "Deleted the 'p2' identifier"
},
{
"span": {
"delete": {
"start": [
9,
6
],
"end": [
9,
8
]
}
},
"summary": "Deleted the 'p1' identifier"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
3
]
}
},
"summary": "Added the 'p1' identifier"
},
{
"span": {
"insert": {
"start": [
8,
5
],
"end": [
8,
8
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
3
]
}
},
"summary": "Added the 'p2' identifier"
},
{
"span": {
"insert": {
"start": [
9,
6
],
"end": [
9,
8
]
}
},
"summary": "Added the 'p3' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"pointer-types.go"
],
"sha1": "d2a3c92037c86f62abc217382e816fadbd0005e6",
"gitDir": "test/corpus/repos/go",
"sha2": "1cdb8787a0eebf0a36145890fa5d4eec15d38d4c"
}
,{
"testCaseDescription": "go-pointer-types-delete-test",
"expectedResult": {
"changes": {
"pointer-types.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
3
]
}
},
"summary": "Deleted the 'p1' identifier"
},
{
"span": {
"delete": {
"start": [
4,
5
],
"end": [
4,
11
]
}
},
"summary": "Deleted the 'string' identifier"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
3
]
}
},
"summary": "Deleted the 'p2' identifier"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
8
]
}
},
"summary": "Deleted the 'p1' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"pointer-types.go"
],
"sha1": "1cdb8787a0eebf0a36145890fa5d4eec15d38d4c",
"gitDir": "test/corpus/repos/go",
"sha2": "58edb212af74dc12b256dfd1f82ed096e016a044"
}
,{
"testCaseDescription": "go-pointer-types-delete-rest-test",
"expectedResult": {
"changes": {
"pointer-types.go": [
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
3
]
}
},
"summary": "Deleted the 'p1' identifier"
},
{
"span": {
"delete": {
"start": [
4,
5
],
"end": [
4,
8
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
3
]
}
},
"summary": "Deleted the 'p2' identifier"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
8
]
}
},
"summary": "Deleted the 'p3' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"pointer-types.go"
],
"sha1": "58edb212af74dc12b256dfd1f82ed096e016a044",
"gitDir": "test/corpus/repos/go",
"sha2": "505facc3edae9be8c951b6b277d329c3f68a0fd4"
}]

View File

@ -0,0 +1,634 @@
[{
"testCaseDescription": "go-qualified-types-insert-test",
"expectedResult": {
"changes": {
"qualified-types.go": [
{
"span": {
"insert": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
3,
8
],
"end": [
3,
9
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
3,
10
],
"end": [
3,
11
]
}
},
"summary": "Added the 'c' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"qualified-types.go"
],
"sha1": "04a4c5862afe4d31f1c5de8be5717e63b68b1e09",
"gitDir": "test/corpus/repos/go",
"sha2": "99925e194b3edbcca6d48ac952d3dd14a4ce7678"
}
,{
"testCaseDescription": "go-qualified-types-replacement-insert-test",
"expectedResult": {
"changes": {
"qualified-types.go": [
{
"span": {
"insert": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
3,
8
],
"end": [
3,
9
]
}
},
"summary": "Added the 'y' identifier"
},
{
"span": {
"insert": {
"start": [
3,
10
],
"end": [
3,
11
]
}
},
"summary": "Added the 'z' identifier"
},
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
4,
8
],
"end": [
4,
9
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
4,
10
],
"end": [
4,
11
]
}
},
"summary": "Added the 'c' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"qualified-types.go"
],
"sha1": "99925e194b3edbcca6d48ac952d3dd14a4ce7678",
"gitDir": "test/corpus/repos/go",
"sha2": "561fef7da13cd226ded59dc18991ee91c5dc49bf"
}
,{
"testCaseDescription": "go-qualified-types-delete-insert-test",
"expectedResult": {
"changes": {
"qualified-types.go": [
{
"span": {
"replace": [
{
"start": [
3,
6
],
"end": [
3,
7
]
},
{
"start": [
3,
6
],
"end": [
3,
7
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
8
],
"end": [
3,
9
]
},
{
"start": [
3,
8
],
"end": [
3,
9
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
10
],
"end": [
3,
11
]
},
{
"start": [
3,
10
],
"end": [
3,
11
]
}
]
},
"summary": "Replaced the 'z' identifier with the 'c' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"qualified-types.go"
],
"sha1": "561fef7da13cd226ded59dc18991ee91c5dc49bf",
"gitDir": "test/corpus/repos/go",
"sha2": "4ce2dcc75c4454b3155595e0d3ea31d88d7084f4"
}
,{
"testCaseDescription": "go-qualified-types-replacement-test",
"expectedResult": {
"changes": {
"qualified-types.go": [
{
"span": {
"replace": [
{
"start": [
3,
6
],
"end": [
3,
7
]
},
{
"start": [
3,
6
],
"end": [
3,
7
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
8
],
"end": [
3,
9
]
},
{
"start": [
3,
8
],
"end": [
3,
9
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
10
],
"end": [
3,
11
]
},
{
"start": [
3,
10
],
"end": [
3,
11
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'z' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"qualified-types.go"
],
"sha1": "4ce2dcc75c4454b3155595e0d3ea31d88d7084f4",
"gitDir": "test/corpus/repos/go",
"sha2": "a2b3adbc3aa0f39dcbf45ffd0dcccc04bf1b630d"
}
,{
"testCaseDescription": "go-qualified-types-delete-replacement-test",
"expectedResult": {
"changes": {
"qualified-types.go": [
{
"span": {
"delete": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
3,
8
],
"end": [
3,
9
]
}
},
"summary": "Deleted the 'y' identifier"
},
{
"span": {
"delete": {
"start": [
3,
10
],
"end": [
3,
11
]
}
},
"summary": "Deleted the 'z' identifier"
},
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
4,
8
],
"end": [
4,
9
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
4,
10
],
"end": [
4,
11
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
4,
8
],
"end": [
4,
9
]
}
},
"summary": "Added the 'y' identifier"
},
{
"span": {
"insert": {
"start": [
4,
10
],
"end": [
4,
11
]
}
},
"summary": "Added the 'z' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"qualified-types.go"
],
"sha1": "a2b3adbc3aa0f39dcbf45ffd0dcccc04bf1b630d",
"gitDir": "test/corpus/repos/go",
"sha2": "a7bad3d23c0285059035ca573d4d7b60fd1bddf2"
}
,{
"testCaseDescription": "go-qualified-types-delete-test",
"expectedResult": {
"changes": {
"qualified-types.go": [
{
"span": {
"delete": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
3,
8
],
"end": [
3,
9
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
3,
10
],
"end": [
3,
11
]
}
},
"summary": "Deleted the 'c' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"qualified-types.go"
],
"sha1": "a7bad3d23c0285059035ca573d4d7b60fd1bddf2",
"gitDir": "test/corpus/repos/go",
"sha2": "f5af670408c94480ce0eadbc4092323404c2d98f"
}
,{
"testCaseDescription": "go-qualified-types-delete-rest-test",
"expectedResult": {
"changes": {
"qualified-types.go": [
{
"span": {
"delete": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
3,
8
],
"end": [
3,
9
]
}
},
"summary": "Deleted the 'y' identifier"
},
{
"span": {
"delete": {
"start": [
3,
10
],
"end": [
3,
11
]
}
},
"summary": "Deleted the 'z' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"qualified-types.go"
],
"sha1": "f5af670408c94480ce0eadbc4092323404c2d98f",
"gitDir": "test/corpus/repos/go",
"sha2": "7fe34cfade910883a553f72f1786758a9f738f8a"
}]

View File

@ -25,9 +25,9 @@
"filePaths": [
"rune-literals.go"
],
"sha1": "69edfee9027a1881ebab28527523326018fa4953",
"sha1": "f21837e2d040e66d0d8daa1c191e700d37a53d67",
"gitDir": "test/corpus/repos/go",
"sha2": "25653229651369857a3c7ee329638397b9bae288"
"sha2": "7497b78524f9f757775e4907bcff4a81a11bfeda"
}
,{
"testCaseDescription": "go-rune-literals-replacement-insert-test",
@ -71,9 +71,9 @@
"filePaths": [
"rune-literals.go"
],
"sha1": "25653229651369857a3c7ee329638397b9bae288",
"sha1": "7497b78524f9f757775e4907bcff4a81a11bfeda",
"gitDir": "test/corpus/repos/go",
"sha2": "40cce5549e396facdab6d6ba6ac33a0c67b633df"
"sha2": "8910a36858a157d0c8baf0f695e189492077eb80"
}
,{
"testCaseDescription": "go-rune-literals-delete-insert-test",
@ -288,9 +288,9 @@
"filePaths": [
"rune-literals.go"
],
"sha1": "40cce5549e396facdab6d6ba6ac33a0c67b633df",
"sha1": "8910a36858a157d0c8baf0f695e189492077eb80",
"gitDir": "test/corpus/repos/go",
"sha2": "4f27a3ceb34020458b2b4cfa501078ffc701b71b"
"sha2": "2d9e34f2344b5d87362822795946bdd76cda64b3"
}
,{
"testCaseDescription": "go-rune-literals-replacement-test",
@ -556,9 +556,9 @@
"filePaths": [
"rune-literals.go"
],
"sha1": "4f27a3ceb34020458b2b4cfa501078ffc701b71b",
"sha1": "2d9e34f2344b5d87362822795946bdd76cda64b3",
"gitDir": "test/corpus/repos/go",
"sha2": "9d2992d75be448c79f2dccdf9301f3c3b893db3a"
"sha2": "ff71504ef5a0d07f2958c7b12426fe75b05c4c36"
}
,{
"testCaseDescription": "go-rune-literals-delete-replacement-test",
@ -617,9 +617,9 @@
"filePaths": [
"rune-literals.go"
],
"sha1": "9d2992d75be448c79f2dccdf9301f3c3b893db3a",
"sha1": "ff71504ef5a0d07f2958c7b12426fe75b05c4c36",
"gitDir": "test/corpus/repos/go",
"sha2": "f358d1ef8634f582948b54df5c49c18c70fc6da6"
"sha2": "3d22cee3cf50ee768d2e88c4ae62fc7181872fda"
}
,{
"testCaseDescription": "go-rune-literals-delete-test",
@ -648,9 +648,9 @@
"filePaths": [
"rune-literals.go"
],
"sha1": "f358d1ef8634f582948b54df5c49c18c70fc6da6",
"sha1": "3d22cee3cf50ee768d2e88c4ae62fc7181872fda",
"gitDir": "test/corpus/repos/go",
"sha2": "80bbf801377db4d41658f37c2c4d8ecc6aeb135d"
"sha2": "e3135bad003500196db30163b6d1946179bf5428"
}
,{
"testCaseDescription": "go-rune-literals-delete-rest-test",
@ -679,7 +679,7 @@
"filePaths": [
"rune-literals.go"
],
"sha1": "80bbf801377db4d41658f37c2c4d8ecc6aeb135d",
"sha1": "e3135bad003500196db30163b6d1946179bf5428",
"gitDir": "test/corpus/repos/go",
"sha2": "da9cdd2791960f8ef5a1a9a75bec48eaf970b990"
"sha2": "4d8db019f0affc179520ece1e0faabb84fdc1ac6"
}]

File diff suppressed because it is too large Load Diff

View File

@ -1,91 +0,0 @@
[{
"testCaseDescription": "go-selector expressions-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"selector expressions.go"
],
"sha1": "28f9d0d23acbf260bc76bc1872d8f1ade5b63907",
"gitDir": "test/corpus/repos/go",
"sha2": "ee0456ea9354505a88032e3ab59b5f2e7827af41"
}
,{
"testCaseDescription": "go-selector expressions-replacement-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"selector expressions.go"
],
"sha1": "ee0456ea9354505a88032e3ab59b5f2e7827af41",
"gitDir": "test/corpus/repos/go",
"sha2": "9e0185d2da71c7260b6954c8e0bdb6369db4e3f5"
}
,{
"testCaseDescription": "go-selector expressions-delete-insert-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"selector expressions.go"
],
"sha1": "9e0185d2da71c7260b6954c8e0bdb6369db4e3f5",
"gitDir": "test/corpus/repos/go",
"sha2": "a5b07b365cd5f6701afc96880b2bedeeb6d988f7"
}
,{
"testCaseDescription": "go-selector expressions-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"selector expressions.go"
],
"sha1": "a5b07b365cd5f6701afc96880b2bedeeb6d988f7",
"gitDir": "test/corpus/repos/go",
"sha2": "650ca03ba4ec0915bf5ea05d1fa9eeeffe35065b"
}
,{
"testCaseDescription": "go-selector expressions-delete-replacement-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"selector expressions.go"
],
"sha1": "650ca03ba4ec0915bf5ea05d1fa9eeeffe35065b",
"gitDir": "test/corpus/repos/go",
"sha2": "e183c4c213c0b6441d7a50af2a7d44476aed209a"
}
,{
"testCaseDescription": "go-selector expressions-delete-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"selector expressions.go"
],
"sha1": "e183c4c213c0b6441d7a50af2a7d44476aed209a",
"gitDir": "test/corpus/repos/go",
"sha2": "fa3418e1ea9757dde2f38eb157bd1ebcf14bc9c7"
}
,{
"testCaseDescription": "go-selector expressions-delete-rest-test",
"expectedResult": {
"changes": {},
"errors": {}
},
"filePaths": [
"selector expressions.go"
],
"sha1": "fa3418e1ea9757dde2f38eb157bd1ebcf14bc9c7",
"gitDir": "test/corpus/repos/go",
"sha2": "db2d6da6c473a3d7fb8039e9cc10f1ecea839f40"
}]

View File

@ -1,8 +1,8 @@
[{
"testCaseDescription": "go-call-expressions.go-insert-test",
"testCaseDescription": "go-selector-expressions-insert-test",
"expectedResult": {
"changes": {
"call-expressions.go.go": [
"selector-expressions.go": [
{
"span": {
"insert": {
@ -12,28 +12,28 @@
],
"end": [
3,
4
8
]
}
},
"summary": "Added the 'a()' function call"
"summary": "Added the 'method call()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go.go"
"selector-expressions.go"
],
"sha1": "d24fbce25cc7b4c29a23412a643f825dd967a7c5",
"sha1": "b53c9d85d725a477b9a45411def0e14143ad0ca3",
"gitDir": "test/corpus/repos/go",
"sha2": "8d8438c9836d5955e005cffe28af47fb4342051d"
"sha2": "fb4e26ca2c0ed1df3a59f519104a9ab06ef165a5"
}
,{
"testCaseDescription": "go-call-expressions.go-replacement-insert-test",
"testCaseDescription": "go-selector-expressions-replacement-insert-test",
"expectedResult": {
"changes": {
"call-expressions.go.go": [
"selector-expressions.go": [
{
"span": {
"replace": [
@ -66,17 +66,17 @@
"errors": {}
},
"filePaths": [
"call-expressions.go.go"
"selector-expressions.go"
],
"sha1": "8d8438c9836d5955e005cffe28af47fb4342051d",
"sha1": "fb4e26ca2c0ed1df3a59f519104a9ab06ef165a5",
"gitDir": "test/corpus/repos/go",
"sha2": "228471d5f566cf0b3c87b99e704a12fa1be60ab0"
"sha2": "4943387c5e6a39372cc4d95a1c019a292be75df0"
}
,{
"testCaseDescription": "go-call-expressions.go-delete-insert-test",
"testCaseDescription": "go-selector-expressions-delete-insert-test",
"expectedResult": {
"changes": {
"call-expressions.go.go": [
"selector-expressions.go": [
{
"span": {
"replace": [
@ -102,24 +102,78 @@
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier in the a() function call"
"summary": "Replaced the 'x' identifier with the 'a' identifier in the method call() function call"
},
{
"span": {
"replace": [
{
"start": [
3,
3
],
"end": [
3,
4
]
},
{
"start": [
3,
3
],
"end": [
3,
4
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier in the method call() function call"
},
{
"span": {
"replace": [
{
"start": [
3,
5
],
"end": [
3,
6
]
},
{
"start": [
3,
5
],
"end": [
3,
6
]
}
]
},
"summary": "Replaced the 'z' identifier with the 'c' identifier in the method call() function call"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go.go"
"selector-expressions.go"
],
"sha1": "228471d5f566cf0b3c87b99e704a12fa1be60ab0",
"sha1": "4943387c5e6a39372cc4d95a1c019a292be75df0",
"gitDir": "test/corpus/repos/go",
"sha2": "004815c2d262bdaf54f95b7c32b6fc16da8b5c7f"
"sha2": "dd707dde6ae982f7774fe7b80fdcd23b9738f2dc"
}
,{
"testCaseDescription": "go-call-expressions.go-replacement-test",
"testCaseDescription": "go-selector-expressions-replacement-test",
"expectedResult": {
"changes": {
"call-expressions.go.go": [
"selector-expressions.go": [
{
"span": {
"replace": [
@ -145,24 +199,78 @@
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier in the b() function call"
"summary": "Replaced the 'a' identifier with the 'x' identifier in the method call() function call"
},
{
"span": {
"replace": [
{
"start": [
3,
3
],
"end": [
3,
4
]
},
{
"start": [
3,
3
],
"end": [
3,
4
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier in the method call() function call"
},
{
"span": {
"replace": [
{
"start": [
3,
5
],
"end": [
3,
6
]
},
{
"start": [
3,
5
],
"end": [
3,
6
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'z' identifier in the method call() function call"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go.go"
"selector-expressions.go"
],
"sha1": "004815c2d262bdaf54f95b7c32b6fc16da8b5c7f",
"sha1": "dd707dde6ae982f7774fe7b80fdcd23b9738f2dc",
"gitDir": "test/corpus/repos/go",
"sha2": "950471de976105c278d4ac384b5bd63be8939f01"
"sha2": "3f3c6725e29079b2b18451ba57794d97038e818b"
}
,{
"testCaseDescription": "go-call-expressions.go-delete-replacement-test",
"testCaseDescription": "go-selector-expressions-delete-replacement-test",
"expectedResult": {
"changes": {
"call-expressions.go.go": [
"selector-expressions.go": [
{
"span": {
"delete": {
@ -172,11 +280,11 @@
],
"end": [
3,
4
8
]
}
},
"summary": "Deleted the 'b()' function call"
"summary": "Deleted the 'method call()' function call"
},
{
"span": {
@ -187,11 +295,11 @@
],
"end": [
4,
4
8
]
}
},
"summary": "Deleted the 'a()' function call"
"summary": "Deleted the 'method call()' function call"
},
{
"span": {
@ -202,28 +310,28 @@
],
"end": [
4,
4
8
]
}
},
"summary": "Added the 'b()' function call"
"summary": "Added the 'method call()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go.go"
"selector-expressions.go"
],
"sha1": "950471de976105c278d4ac384b5bd63be8939f01",
"sha1": "3f3c6725e29079b2b18451ba57794d97038e818b",
"gitDir": "test/corpus/repos/go",
"sha2": "a1f8575adf9449112b24367568072bb7983f182c"
"sha2": "a46e40237ac19b22266d63ad5cf18cea66b0e0a9"
}
,{
"testCaseDescription": "go-call-expressions.go-delete-test",
"testCaseDescription": "go-selector-expressions-delete-test",
"expectedResult": {
"changes": {
"call-expressions.go.go": [
"selector-expressions.go": [
{
"span": {
"replace": [
@ -256,17 +364,17 @@
"errors": {}
},
"filePaths": [
"call-expressions.go.go"
"selector-expressions.go"
],
"sha1": "a1f8575adf9449112b24367568072bb7983f182c",
"sha1": "a46e40237ac19b22266d63ad5cf18cea66b0e0a9",
"gitDir": "test/corpus/repos/go",
"sha2": "59264d47e6988d7bb16057d07a8e7a68ed833b74"
"sha2": "6e47ff17385ed0d18b88e6323c1a0b644f0c81cf"
}
,{
"testCaseDescription": "go-call-expressions.go-delete-rest-test",
"testCaseDescription": "go-selector-expressions-delete-rest-test",
"expectedResult": {
"changes": {
"call-expressions.go.go": [
"selector-expressions.go": [
{
"span": {
"delete": {
@ -276,20 +384,20 @@
],
"end": [
3,
4
8
]
}
},
"summary": "Deleted the 'b()' function call"
"summary": "Deleted the 'method call()' function call"
}
]
},
"errors": {}
},
"filePaths": [
"call-expressions.go.go"
"selector-expressions.go"
],
"sha1": "59264d47e6988d7bb16057d07a8e7a68ed833b74",
"sha1": "6e47ff17385ed0d18b88e6323c1a0b644f0c81cf",
"gitDir": "test/corpus/repos/go",
"sha2": "b8bae5c65a680232431ad8af160a9344913ff879"
"sha2": "2e4b83e41a5b6a7c02bcf321110e5a7b16dc2674"
}]

View File

@ -0,0 +1,424 @@
[{
"testCaseDescription": "go-send-statements-insert-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
4
]
}
},
"summary": "Added 'foo' identifier"
},
{
"span": {
"insert": {
"start": [
3,
8
],
"end": [
3,
9
]
}
},
"summary": "Added '5'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"sha1": "c709e4cf99c30c35dde9ba1b60e816d6a4c25952",
"gitDir": "test/corpus/repos/go",
"sha2": "4ce61e96ccaa2ee49b44de3a73b4c22d7b8cfb4e"
}
,{
"testCaseDescription": "go-send-statements-replacement-insert-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
4,
1
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"sha1": "4ce61e96ccaa2ee49b44de3a73b4c22d7b8cfb4e",
"gitDir": "test/corpus/repos/go",
"sha2": "02f065956a8fd4be8e43b18187d325c810920572"
}
,{
"testCaseDescription": "go-send-statements-delete-insert-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
4
]
},
{
"start": [
3,
1
],
"end": [
3,
4
]
}
]
},
"summary": "Replaced the 'bar' identifier with the 'foo' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
8
],
"end": [
3,
9
]
},
{
"start": [
3,
8
],
"end": [
3,
9
]
}
]
},
"summary": "Replaced '6' with '5'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"sha1": "02f065956a8fd4be8e43b18187d325c810920572",
"gitDir": "test/corpus/repos/go",
"sha2": "cac352bdfc9068360732e4e21d364fd26daa398d"
}
,{
"testCaseDescription": "go-send-statements-replacement-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
4
]
},
{
"start": [
3,
1
],
"end": [
3,
4
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'bar' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
8
],
"end": [
3,
9
]
},
{
"start": [
3,
8
],
"end": [
3,
9
]
}
]
},
"summary": "Replaced '5' with '6'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"sha1": "cac352bdfc9068360732e4e21d364fd26daa398d",
"gitDir": "test/corpus/repos/go",
"sha2": "cdc8b967e6223286bcda9ea2ca1812790f765558"
}
,{
"testCaseDescription": "go-send-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted 'bar' identifier"
},
{
"span": {
"delete": {
"start": [
3,
8
],
"end": [
3,
9
]
}
},
"summary": "Deleted '6'"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
4
]
}
},
"summary": "Deleted 'foo' identifier"
},
{
"span": {
"delete": {
"start": [
4,
8
],
"end": [
4,
9
]
}
},
"summary": "Deleted '5'"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
4
]
}
},
"summary": "Added 'bar' identifier"
},
{
"span": {
"insert": {
"start": [
4,
8
],
"end": [
4,
9
]
}
},
"summary": "Added '6'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"sha1": "cdc8b967e6223286bcda9ea2ca1812790f765558",
"gitDir": "test/corpus/repos/go",
"sha2": "5ff9b3da8d07279916119976e4bc944a3aa89efb"
}
,{
"testCaseDescription": "go-send-statements-delete-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
4,
1
]
}
]
},
"summary": "Replaced 'main' module statement with 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"sha1": "5ff9b3da8d07279916119976e4bc944a3aa89efb",
"gitDir": "test/corpus/repos/go",
"sha2": "eaf7acec59a492d3a24597f10511b7c8fc4ab13a"
}
,{
"testCaseDescription": "go-send-statements-delete-rest-test",
"expectedResult": {
"changes": {
"send-statements.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted 'bar' identifier"
},
{
"span": {
"delete": {
"start": [
3,
8
],
"end": [
3,
9
]
}
},
"summary": "Deleted '6'"
}
]
},
"errors": {}
},
"filePaths": [
"send-statements.go"
],
"sha1": "eaf7acec59a492d3a24597f10511b7c8fc4ab13a",
"gitDir": "test/corpus/repos/go",
"sha2": "ac93ee4e5b27e59ec3f919fc2511702331ad7639"
}]

View File

@ -0,0 +1,682 @@
[{
"testCaseDescription": "go-short-var-declarations-insert-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Added 'a' identifier"
},
{
"span": {
"insert": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Added 'b' identifier"
},
{
"span": {
"insert": {
"start": [
3,
9
],
"end": [
3,
10
]
}
},
"summary": "Added '1'"
},
{
"span": {
"insert": {
"start": [
3,
12
],
"end": [
3,
13
]
}
},
"summary": "Added '2'"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"sha1": "504a32c06e7e79d9cd933dea4ffbad531a665164",
"gitDir": "test/corpus/repos/go",
"sha2": "5bfe40bbd815eda87bc5d30218f1c238f7af3b06"
}
,{
"testCaseDescription": "go-short-var-declarations-replacement-insert-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
4,
1
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"sha1": "5bfe40bbd815eda87bc5d30218f1c238f7af3b06",
"gitDir": "test/corpus/repos/go",
"sha2": "bee81139191c61d1fbb0c76ed950a283c24b99b8"
}
,{
"testCaseDescription": "go-short-var-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
2
]
},
{
"start": [
3,
1
],
"end": [
3,
2
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
4
],
"end": [
3,
5
]
},
{
"start": [
3,
4
],
"end": [
3,
5
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
9
],
"end": [
3,
10
]
},
{
"start": [
3,
9
],
"end": [
3,
10
]
}
]
},
"summary": "Replaced '3' with '1'"
},
{
"span": {
"replace": [
{
"start": [
3,
12
],
"end": [
3,
13
]
},
{
"start": [
3,
12
],
"end": [
3,
13
]
}
]
},
"summary": "Replaced '4' with '2'"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"sha1": "bee81139191c61d1fbb0c76ed950a283c24b99b8",
"gitDir": "test/corpus/repos/go",
"sha2": "f46e7f1801e2344dea6de88bf761a6c3ef524628"
}
,{
"testCaseDescription": "go-short-var-declarations-replacement-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
2
]
},
{
"start": [
3,
1
],
"end": [
3,
2
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
4
],
"end": [
3,
5
]
},
{
"start": [
3,
4
],
"end": [
3,
5
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
9
],
"end": [
3,
10
]
},
{
"start": [
3,
9
],
"end": [
3,
10
]
}
]
},
"summary": "Replaced '1' with '3'"
},
{
"span": {
"replace": [
{
"start": [
3,
12
],
"end": [
3,
13
]
},
{
"start": [
3,
12
],
"end": [
3,
13
]
}
]
},
"summary": "Replaced '2' with '4'"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"sha1": "f46e7f1801e2344dea6de88bf761a6c3ef524628",
"gitDir": "test/corpus/repos/go",
"sha2": "a7e0553a7c81438baee09806c405493ee0954a5a"
}
,{
"testCaseDescription": "go-short-var-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Deleted 'x' identifier"
},
{
"span": {
"delete": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Deleted 'y' identifier"
},
{
"span": {
"delete": {
"start": [
3,
9
],
"end": [
3,
10
]
}
},
"summary": "Deleted '3'"
},
{
"span": {
"delete": {
"start": [
3,
12
],
"end": [
3,
13
]
}
},
"summary": "Deleted '4'"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted 'a' identifier"
},
{
"span": {
"delete": {
"start": [
4,
4
],
"end": [
4,
5
]
}
},
"summary": "Deleted 'b' identifier"
},
{
"span": {
"delete": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"delete": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Deleted '2'"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added 'x' identifier"
},
{
"span": {
"insert": {
"start": [
4,
4
],
"end": [
4,
5
]
}
},
"summary": "Added 'y' identifier"
},
{
"span": {
"insert": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Added '3'"
},
{
"span": {
"insert": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Added '4'"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"sha1": "a7e0553a7c81438baee09806c405493ee0954a5a",
"gitDir": "test/corpus/repos/go",
"sha2": "f8e84afa3440d58486ea585d9a2565813c123d31"
}
,{
"testCaseDescription": "go-short-var-declarations-delete-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
4,
1
]
}
]
},
"summary": "Replaced 'main' module statement with 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"sha1": "f8e84afa3440d58486ea585d9a2565813c123d31",
"gitDir": "test/corpus/repos/go",
"sha2": "6d95350b697ecdeca8d79e0257e9513223496423"
}
,{
"testCaseDescription": "go-short-var-declarations-delete-rest-test",
"expectedResult": {
"changes": {
"short-var-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Deleted 'x' identifier"
},
{
"span": {
"delete": {
"start": [
3,
4
],
"end": [
3,
5
]
}
},
"summary": "Deleted 'y' identifier"
},
{
"span": {
"delete": {
"start": [
3,
9
],
"end": [
3,
10
]
}
},
"summary": "Deleted '3'"
},
{
"span": {
"delete": {
"start": [
3,
12
],
"end": [
3,
13
]
}
},
"summary": "Deleted '4'"
}
]
},
"errors": {}
},
"filePaths": [
"short-var-declarations.go"
],
"sha1": "6d95350b697ecdeca8d79e0257e9513223496423",
"gitDir": "test/corpus/repos/go",
"sha2": "239d9bd1fe76765327929225eed293b1d1ccc0be"
}]

View File

@ -1,8 +1,8 @@
[{
"testCaseDescription": "go-imports-insert-test",
"testCaseDescription": "go-single-import-declarations-insert-test",
"expectedResult": {
"changes": {
"imports.go": [
"single-import-declarations.go": [
{
"span": {
"insert": {
@ -36,7 +36,7 @@
]
},
"errors": {
"imports.go": [
"single-import-declarations.go": [
{
"span": {
"insert": {
@ -56,17 +56,17 @@
}
},
"filePaths": [
"imports.go"
"single-import-declarations.go"
],
"sha1": "fca223b7d276d1418cf78d534ca2cb53f7d34531",
"sha1": "7448c4ca268e0d81c2bd799b039236701d288cec",
"gitDir": "test/corpus/repos/go",
"sha2": "2d108efa617317d39c74299137e2f7e1e506a4e4"
"sha2": "7c327a980b86296df87fa5cd74edc5b1a19b088f"
}
,{
"testCaseDescription": "go-imports-replacement-insert-test",
"testCaseDescription": "go-single-import-declarations-replacement-insert-test",
"expectedResult": {
"changes": {
"imports.go": [
"single-import-declarations.go": [
{
"span": {
"insert": {
@ -130,7 +130,7 @@
]
},
"errors": {
"imports.go": [
"single-import-declarations.go": [
{
"span": {
"insert": {
@ -165,17 +165,17 @@
}
},
"filePaths": [
"imports.go"
"single-import-declarations.go"
],
"sha1": "2d108efa617317d39c74299137e2f7e1e506a4e4",
"sha1": "7c327a980b86296df87fa5cd74edc5b1a19b088f",
"gitDir": "test/corpus/repos/go",
"sha2": "7e16b21a7fd894ced28f3b87274002ef5337964f"
"sha2": "4d3510140bc028dbcf0441c0e9cac386e3f8aec8"
}
,{
"testCaseDescription": "go-imports-delete-insert-test",
"testCaseDescription": "go-single-import-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"imports.go": [
"single-import-declarations.go": [
{
"span": {
"replace": [
@ -262,17 +262,17 @@
"errors": {}
},
"filePaths": [
"imports.go"
"single-import-declarations.go"
],
"sha1": "7e16b21a7fd894ced28f3b87274002ef5337964f",
"sha1": "4d3510140bc028dbcf0441c0e9cac386e3f8aec8",
"gitDir": "test/corpus/repos/go",
"sha2": "0e32bdc9934dea1a8adfa5dca8c10d27b9f4a4b8"
"sha2": "bf581c04d26c93f1b8571e889f00a02a2d385557"
}
,{
"testCaseDescription": "go-imports-replacement-test",
"testCaseDescription": "go-single-import-declarations-replacement-test",
"expectedResult": {
"changes": {
"imports.go": [
"single-import-declarations.go": [
{
"span": {
"replace": [
@ -359,17 +359,17 @@
"errors": {}
},
"filePaths": [
"imports.go"
"single-import-declarations.go"
],
"sha1": "0e32bdc9934dea1a8adfa5dca8c10d27b9f4a4b8",
"sha1": "bf581c04d26c93f1b8571e889f00a02a2d385557",
"gitDir": "test/corpus/repos/go",
"sha2": "3b0233c08a9de971a81b0912c0262fa4cd534f09"
"sha2": "2a37194bbfb147cbd72c61f74826da85bd272307"
}
,{
"testCaseDescription": "go-imports-delete-replacement-test",
"testCaseDescription": "go-single-import-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"imports.go": [
"single-import-declarations.go": [
{
"span": {
"delete": {
@ -463,7 +463,7 @@
]
},
"errors": {
"imports.go": [
"single-import-declarations.go": [
{
"span": {
"delete": {
@ -513,17 +513,17 @@
}
},
"filePaths": [
"imports.go"
"single-import-declarations.go"
],
"sha1": "3b0233c08a9de971a81b0912c0262fa4cd534f09",
"sha1": "2a37194bbfb147cbd72c61f74826da85bd272307",
"gitDir": "test/corpus/repos/go",
"sha2": "15a082e0004a20660d823c9c90f7535c1ce8ab1e"
"sha2": "fd5acb72d12b497ac4206aa847de1b0a94583a5c"
}
,{
"testCaseDescription": "go-imports-delete-test",
"testCaseDescription": "go-single-import-declarations-delete-test",
"expectedResult": {
"changes": {
"imports.go": [
"single-import-declarations.go": [
{
"span": {
"delete": {
@ -557,7 +557,7 @@
]
},
"errors": {
"imports.go": [
"single-import-declarations.go": [
{
"span": {
"delete": {
@ -577,17 +577,17 @@
}
},
"filePaths": [
"imports.go"
"single-import-declarations.go"
],
"sha1": "15a082e0004a20660d823c9c90f7535c1ce8ab1e",
"sha1": "fd5acb72d12b497ac4206aa847de1b0a94583a5c",
"gitDir": "test/corpus/repos/go",
"sha2": "a1523caa7685ab5be6d81a60ac427ae6bc6b23b1"
"sha2": "50374ead850284ec48e2c48c47a03448285d9168"
}
,{
"testCaseDescription": "go-imports-delete-rest-test",
"testCaseDescription": "go-single-import-declarations-delete-rest-test",
"expectedResult": {
"changes": {
"imports.go": [
"single-import-declarations.go": [
{
"span": {
"delete": {
@ -621,7 +621,7 @@
]
},
"errors": {
"imports.go": [
"single-import-declarations.go": [
{
"span": {
"delete": {
@ -641,9 +641,9 @@
}
},
"filePaths": [
"imports.go"
"single-import-declarations.go"
],
"sha1": "a1523caa7685ab5be6d81a60ac427ae6bc6b23b1",
"sha1": "50374ead850284ec48e2c48c47a03448285d9168",
"gitDir": "test/corpus/repos/go",
"sha2": "c517d0acb98bcbef49c0f5bf480fbb868ee06ae3"
"sha2": "ec40427d50286b8a3e137f70d1373210cf1555d7"
}]

View File

@ -0,0 +1,634 @@
[{
"testCaseDescription": "go-single-line-function-declarations-insert-test",
"expectedResult": {
"changes": {
"single-line-function-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
18
]
}
},
"summary": "Added the 'f1' function"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
23
]
}
},
"summary": "Added the 'f2' function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
24
]
}
},
"summary": "Added the 'f3' function"
}
]
},
"errors": {}
},
"filePaths": [
"single-line-function-declarations.go"
],
"sha1": "260fbf63c19006bd7925208650b05fa4ade15e5e",
"gitDir": "test/corpus/repos/go",
"sha2": "437c05abf9822580dee220ee8ddfc93f0a29f56f"
}
,{
"testCaseDescription": "go-single-line-function-declarations-replacement-insert-test",
"expectedResult": {
"changes": {
"single-line-function-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
18
]
}
},
"summary": "Added the 'g1' function"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
23
]
}
},
"summary": "Added the 'g2' function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
24
]
}
},
"summary": "Added the 'g3' function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
18
]
}
},
"summary": "Added the 'f1' function"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
23
]
}
},
"summary": "Added the 'f2' function"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
24
]
}
},
"summary": "Added the 'f3' function"
}
]
},
"errors": {}
},
"filePaths": [
"single-line-function-declarations.go"
],
"sha1": "437c05abf9822580dee220ee8ddfc93f0a29f56f",
"gitDir": "test/corpus/repos/go",
"sha2": "dead765a627f38f08a5dd8a830cc60b549950b6c"
}
,{
"testCaseDescription": "go-single-line-function-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"single-line-function-declarations.go": [
{
"span": {
"replace": [
{
"start": [
3,
6
],
"end": [
3,
8
]
},
{
"start": [
3,
6
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the 'g1' identifier with the 'f1' identifier in the f1 function of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
8
]
},
{
"start": [
4,
6
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the 'g2' identifier with the 'f2' identifier in the f2 function of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
8
]
},
{
"start": [
5,
6
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 'g3' identifier with the 'f3' identifier in the f3 function of the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"single-line-function-declarations.go"
],
"sha1": "dead765a627f38f08a5dd8a830cc60b549950b6c",
"gitDir": "test/corpus/repos/go",
"sha2": "dcdc8d0de277ba4c9cbf09ed7ee934d1c5f6e3e7"
}
,{
"testCaseDescription": "go-single-line-function-declarations-replacement-test",
"expectedResult": {
"changes": {
"single-line-function-declarations.go": [
{
"span": {
"replace": [
{
"start": [
3,
6
],
"end": [
3,
8
]
},
{
"start": [
3,
6
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the 'f1' identifier with the 'g1' identifier in the g1 function of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
8
]
},
{
"start": [
4,
6
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the 'f2' identifier with the 'g2' identifier in the g2 function of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
8
]
},
{
"start": [
5,
6
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 'f3' identifier with the 'g3' identifier in the g3 function of the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"single-line-function-declarations.go"
],
"sha1": "dcdc8d0de277ba4c9cbf09ed7ee934d1c5f6e3e7",
"gitDir": "test/corpus/repos/go",
"sha2": "315e5ef495620295b7cecd65f8042c00d71ea8d5"
}
,{
"testCaseDescription": "go-single-line-function-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"single-line-function-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
18
]
}
},
"summary": "Deleted the 'g1' function"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
23
]
}
},
"summary": "Deleted the 'g2' function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
24
]
}
},
"summary": "Deleted the 'g3' function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
18
]
}
},
"summary": "Deleted the 'f1' function"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
23
]
}
},
"summary": "Deleted the 'f2' function"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
24
]
}
},
"summary": "Deleted the 'f3' function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
18
]
}
},
"summary": "Added the 'g1' function"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
23
]
}
},
"summary": "Added the 'g2' function"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
24
]
}
},
"summary": "Added the 'g3' function"
}
]
},
"errors": {}
},
"filePaths": [
"single-line-function-declarations.go"
],
"sha1": "315e5ef495620295b7cecd65f8042c00d71ea8d5",
"gitDir": "test/corpus/repos/go",
"sha2": "e46bf2f4b135bbf79324acffaecf57ccb98d9716"
}
,{
"testCaseDescription": "go-single-line-function-declarations-delete-test",
"expectedResult": {
"changes": {
"single-line-function-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
18
]
}
},
"summary": "Deleted the 'f1' function"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
23
]
}
},
"summary": "Deleted the 'f2' function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
24
]
}
},
"summary": "Deleted the 'f3' function"
}
]
},
"errors": {}
},
"filePaths": [
"single-line-function-declarations.go"
],
"sha1": "e46bf2f4b135bbf79324acffaecf57ccb98d9716",
"gitDir": "test/corpus/repos/go",
"sha2": "088f9cae076db5643ec08fca4aed7a0f8067cb23"
}
,{
"testCaseDescription": "go-single-line-function-declarations-delete-rest-test",
"expectedResult": {
"changes": {
"single-line-function-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
18
]
}
},
"summary": "Deleted the 'g1' function"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
23
]
}
},
"summary": "Deleted the 'g2' function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
24
]
}
},
"summary": "Deleted the 'g3' function"
}
]
},
"errors": {}
},
"filePaths": [
"single-line-function-declarations.go"
],
"sha1": "088f9cae076db5643ec08fca4aed7a0f8067cb23",
"gitDir": "test/corpus/repos/go",
"sha2": "4d101658ac8f273a68689ac89aebfc80d49627f5"
}]

View File

@ -0,0 +1,829 @@
[{
"testCaseDescription": "go-slice-literals-insert-test",
"expectedResult": {
"changes": {
"slice-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
22
]
}
},
"summary": "Added the 'variable' variable"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
26
]
}
},
"summary": "Added the 'variable' variable"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
"slice-literals.go"
],
"sha1": "30b573684128bebb063ed6d3511558fcb939640a",
"gitDir": "test/corpus/repos/go",
"sha2": "3f861a489ee8ebd839fe1c1cae5006aea8b929cf"
}
,{
"testCaseDescription": "go-slice-literals-replacement-insert-test",
"expectedResult": {
"changes": {
"slice-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
27
]
}
},
"summary": "Added the 'variable' variable"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
29
]
}
},
"summary": "Added the 'variable' variable"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'variable' variable"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
22
]
}
},
"summary": "Added the 'variable' variable"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
26
]
}
},
"summary": "Added the 'variable' variable"
},
{
"span": {
"insert": {
"start": [
11,
1
],
"end": [
14,
2
]
}
},
"summary": "Added the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
"slice-literals.go"
],
"sha1": "3f861a489ee8ebd839fe1c1cae5006aea8b929cf",
"gitDir": "test/corpus/repos/go",
"sha2": "1769e2d479eda22e5beb696155d2e922b1bc9839"
}
,{
"testCaseDescription": "go-slice-literals-delete-insert-test",
"expectedResult": {
"changes": {
"slice-literals.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
22
]
}
},
"summary": "Added the 'variable' variable"
},
{
"span": {
"replace": [
{
"start": [
3,
7
],
"end": [
3,
9
]
},
{
"start": [
4,
7
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced the 's1' identifier with the 's2' identifier in the const s2 = []string{\"hi\"} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
3,
21
],
"end": [
3,
26
]
},
{
"start": [
4,
21
],
"end": [
4,
25
]
}
]
},
"summary": "Replaced the \"sup\" string with the \"hi\" string in the const s2 = []string{\"hi\"} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
3,
21
],
"end": [
3,
26
]
},
{
"start": [
4,
21
],
"end": [
4,
25
]
}
]
},
"summary": "Replaced the \"sup\" string with the \"hi\" string in the const s2 = []string{\"hi\"} variable of the 'main' module statement"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'variable' variable"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
29
]
}
},
"summary": "Deleted the 'variable' variable"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
8,
2
]
}
},
"summary": "Deleted the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
"slice-literals.go"
],
"sha1": "1769e2d479eda22e5beb696155d2e922b1bc9839",
"gitDir": "test/corpus/repos/go",
"sha2": "95525b83dc6e593130cba254d571c6cbae235ac9"
}
,{
"testCaseDescription": "go-slice-literals-replacement-test",
"expectedResult": {
"changes": {
"slice-literals.go": [
{
"span": {
"replace": [
{
"start": [
3,
20
],
"end": [
3,
22
]
},
{
"start": [
3,
21
],
"end": [
3,
26
]
}
]
},
"summary": "Replaced the '{}' literal_value with the \"sup\" string in the const s1 = []string{\"sup\"} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
3,
20
],
"end": [
3,
22
]
},
{
"start": [
3,
21
],
"end": [
3,
26
]
}
]
},
"summary": "Replaced the '{}' literal_value with the \"sup\" string in the const s1 = []string{\"sup\"} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
4,
21
],
"end": [
4,
25
]
},
{
"start": [
4,
21
],
"end": [
4,
28
]
}
]
},
"summary": "Replaced the \"hi\" string with the \"hello\" string in the const s2 = []string{\"hello\"} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
4,
21
],
"end": [
4,
25
]
},
{
"start": [
4,
21
],
"end": [
4,
28
]
}
]
},
"summary": "Replaced the \"hi\" string with the \"hello\" string in the const s2 = []string{\"hello\"} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
6,
1
],
"end": [
6,
5
]
},
{
"start": [
6,
1
],
"end": [
6,
6
]
}
]
},
"summary": "Replaced the \"hi\" string with the \"bar\" string in the const s3 = []string{\n\"bar\",\n \"baz\",\n} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
7,
2
],
"end": [
7,
9
]
},
{
"start": [
7,
2
],
"end": [
7,
7
]
}
]
},
"summary": "Replaced the \"hello\" string with the \"baz\" string in the const s3 = []string{\n\"bar\",\n \"baz\",\n} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
6,
1
],
"end": [
6,
5
]
},
{
"start": [
6,
1
],
"end": [
6,
6
]
}
]
},
"summary": "Replaced the \"hi\" string with the \"bar\" string in the const s3 = []string{\n\"bar\",\n \"baz\",\n} variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
7,
2
],
"end": [
7,
9
]
},
{
"start": [
7,
2
],
"end": [
7,
7
]
}
]
},
"summary": "Replaced the \"hello\" string with the \"baz\" string in the const s3 = []string{\n\"bar\",\n \"baz\",\n} variable of the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"slice-literals.go"
],
"sha1": "95525b83dc6e593130cba254d571c6cbae235ac9",
"gitDir": "test/corpus/repos/go",
"sha2": "5750c30dd18b5e4ad08c34df375c5bdc633f4a54"
}
,{
"testCaseDescription": "go-slice-literals-delete-replacement-test",
"expectedResult": {
"changes": {
"slice-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
27
]
}
},
"summary": "Deleted the 'variable' variable"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
29
]
}
},
"summary": "Deleted the 'variable' variable"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
8,
2
]
}
},
"summary": "Deleted the 'variable' variable"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
22
]
}
},
"summary": "Deleted the 'variable' variable"
},
{
"span": {
"delete": {
"start": [
10,
1
],
"end": [
10,
26
]
}
},
"summary": "Deleted the 'variable' variable"
},
{
"span": {
"delete": {
"start": [
11,
1
],
"end": [
14,
2
]
}
},
"summary": "Deleted the 'variable' variable"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
27
]
}
},
"summary": "Added the 'variable' variable"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
29
]
}
},
"summary": "Added the 'variable' variable"
},
{
"span": {
"insert": {
"start": [
11,
1
],
"end": [
14,
2
]
}
},
"summary": "Added the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
"slice-literals.go"
],
"sha1": "5750c30dd18b5e4ad08c34df375c5bdc633f4a54",
"gitDir": "test/corpus/repos/go",
"sha2": "fd16c23794bf3bb75c29c6915111c75fbe21a3cb"
}
,{
"testCaseDescription": "go-slice-literals-delete-test",
"expectedResult": {
"changes": {
"slice-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
22
]
}
},
"summary": "Deleted the 'variable' variable"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
26
]
}
},
"summary": "Deleted the 'variable' variable"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
8,
2
]
}
},
"summary": "Deleted the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
"slice-literals.go"
],
"sha1": "fd16c23794bf3bb75c29c6915111c75fbe21a3cb",
"gitDir": "test/corpus/repos/go",
"sha2": "cc799956cd75fe840723d328e0eca7e986531a75"
}
,{
"testCaseDescription": "go-slice-literals-delete-rest-test",
"expectedResult": {
"changes": {
"slice-literals.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
27
]
}
},
"summary": "Deleted the 'variable' variable"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
29
]
}
},
"summary": "Deleted the 'variable' variable"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
8,
2
]
}
},
"summary": "Deleted the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
"slice-literals.go"
],
"sha1": "cc799956cd75fe840723d328e0eca7e986531a75",
"gitDir": "test/corpus/repos/go",
"sha2": "fac4a564f1d328802761d83ecfcdfd8dc411d624"
}]

View File

@ -0,0 +1,712 @@
[{
"testCaseDescription": "go-slice-types-insert-test",
"expectedResult": {
"changes": {
"slice-types.go": [
{
"span": {
"insert": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
3,
10
],
"end": [
3,
11
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Added the 'd' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"slice-types.go"
],
"sha1": "95159c11d54c103607d94c28b48712720d7abf46",
"gitDir": "test/corpus/repos/go",
"sha2": "5e0d01c1e6441f4803738c4ebb54c89234917727"
}
,{
"testCaseDescription": "go-slice-types-replacement-insert-test",
"expectedResult": {
"changes": {
"slice-types.go": [
{
"span": {
"insert": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
3,
12
],
"end": [
3,
13
]
}
},
"summary": "Added the 'p' identifier"
},
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
4,
10
],
"end": [
4,
11
]
}
},
"summary": "Added the 'y' identifier"
},
{
"span": {
"insert": {
"start": [
5,
6
],
"end": [
5,
7
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
5,
10
],
"end": [
5,
11
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
6,
12
],
"end": [
6,
13
]
}
},
"summary": "Added the 'd' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"slice-types.go"
],
"sha1": "5e0d01c1e6441f4803738c4ebb54c89234917727",
"gitDir": "test/corpus/repos/go",
"sha2": "898e4363dcf59f92db573c22d7b743b4bbedb55d"
}
,{
"testCaseDescription": "go-slice-types-delete-insert-test",
"expectedResult": {
"changes": {
"slice-types.go": [
{
"span": {
"insert": {
"start": [
3,
10
],
"end": [
3,
11
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
3,
12
],
"end": [
3,
13
]
}
},
"summary": "Deleted the 'p' identifier"
},
{
"span": {
"insert": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Added the 'd' identifier"
},
{
"span": {
"delete": {
"start": [
4,
10
],
"end": [
4,
11
]
}
},
"summary": "Deleted the 'y' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"slice-types.go"
],
"sha1": "898e4363dcf59f92db573c22d7b743b4bbedb55d",
"gitDir": "test/corpus/repos/go",
"sha2": "51b54a5b1486ff6541690f199eb4e96198b90678"
}
,{
"testCaseDescription": "go-slice-types-replacement-test",
"expectedResult": {
"changes": {
"slice-types.go": [
{
"span": {
"insert": {
"start": [
3,
12
],
"end": [
3,
13
]
}
},
"summary": "Added the 'p' identifier"
},
{
"span": {
"delete": {
"start": [
3,
10
],
"end": [
3,
11
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
4,
10
],
"end": [
4,
11
]
}
},
"summary": "Added the 'y' identifier"
},
{
"span": {
"delete": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Deleted the 'd' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"slice-types.go"
],
"sha1": "51b54a5b1486ff6541690f199eb4e96198b90678",
"gitDir": "test/corpus/repos/go",
"sha2": "07a0450366926f8e279be50983c4de8e5c7d8f24"
}
,{
"testCaseDescription": "go-slice-types-delete-replacement-test",
"expectedResult": {
"changes": {
"slice-types.go": [
{
"span": {
"delete": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
3,
12
],
"end": [
3,
13
]
}
},
"summary": "Deleted the 'p' identifier"
},
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
4,
10
],
"end": [
4,
11
]
}
},
"summary": "Deleted the 'y' identifier"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
7
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
5,
10
],
"end": [
5,
11
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
6,
12
],
"end": [
6,
13
]
}
},
"summary": "Deleted the 'd' identifier"
},
{
"span": {
"insert": {
"start": [
5,
6
],
"end": [
5,
7
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
5,
12
],
"end": [
5,
13
]
}
},
"summary": "Added the 'p' identifier"
},
{
"span": {
"insert": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
6,
10
],
"end": [
6,
11
]
}
},
"summary": "Added the 'y' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"slice-types.go"
],
"sha1": "07a0450366926f8e279be50983c4de8e5c7d8f24",
"gitDir": "test/corpus/repos/go",
"sha2": "24ae3e600ba5ec7d2e7d20358bd0fcbdd735ab42"
}
,{
"testCaseDescription": "go-slice-types-delete-test",
"expectedResult": {
"changes": {
"slice-types.go": [
{
"span": {
"delete": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
3,
10
],
"end": [
3,
11
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Deleted the 'd' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"slice-types.go"
],
"sha1": "24ae3e600ba5ec7d2e7d20358bd0fcbdd735ab42",
"gitDir": "test/corpus/repos/go",
"sha2": "e2e637c8c270694708c78f3c127f073f56d3c4b6"
}
,{
"testCaseDescription": "go-slice-types-delete-rest-test",
"expectedResult": {
"changes": {
"slice-types.go": [
{
"span": {
"delete": {
"start": [
3,
6
],
"end": [
3,
7
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
3,
12
],
"end": [
3,
13
]
}
},
"summary": "Deleted the 'p' identifier"
},
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
7
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
4,
10
],
"end": [
4,
11
]
}
},
"summary": "Deleted the 'y' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"slice-types.go"
],
"sha1": "e2e637c8c270694708c78f3c127f073f56d3c4b6",
"gitDir": "test/corpus/repos/go",
"sha2": "7e210dda1c0139bb98ba4890886f06ebb95ad7f7"
}]

View File

@ -25,9 +25,9 @@
"filePaths": [
"string-literals.go"
],
"sha1": "e82156957bedcd762ee0f550be2cb692c8cfe195",
"sha1": "2e865019729977e8653deb314529d075eeb0bc75",
"gitDir": "test/corpus/repos/go",
"sha2": "264b7fdb718e102df813c94e37d1a6494f841f5e"
"sha2": "084effb8a44957a9d376660de5a1f6390a63db71"
}
,{
"testCaseDescription": "go-string-literals-replacement-insert-test",
@ -71,9 +71,9 @@
"filePaths": [
"string-literals.go"
],
"sha1": "264b7fdb718e102df813c94e37d1a6494f841f5e",
"sha1": "084effb8a44957a9d376660de5a1f6390a63db71",
"gitDir": "test/corpus/repos/go",
"sha2": "111c464fc69ff2b032586b1a43ffce836e8581be"
"sha2": "6a097739b2cd3ce55df1e59b3c2e9e7c62c8a38a"
}
,{
"testCaseDescription": "go-string-literals-delete-insert-test",
@ -195,9 +195,9 @@
"filePaths": [
"string-literals.go"
],
"sha1": "111c464fc69ff2b032586b1a43ffce836e8581be",
"sha1": "6a097739b2cd3ce55df1e59b3c2e9e7c62c8a38a",
"gitDir": "test/corpus/repos/go",
"sha2": "8ee6d9620b597f728fde95ce4f243480996f2f8a"
"sha2": "1f0fcbcc85eb969b8abed0284544de81522c45d8"
}
,{
"testCaseDescription": "go-string-literals-replacement-test",
@ -319,9 +319,9 @@
"filePaths": [
"string-literals.go"
],
"sha1": "8ee6d9620b597f728fde95ce4f243480996f2f8a",
"sha1": "1f0fcbcc85eb969b8abed0284544de81522c45d8",
"gitDir": "test/corpus/repos/go",
"sha2": "1440e905cbe8446911909fb14761372b8f01c91e"
"sha2": "c88eef92c457e4694e39cddb184db5d9d0a03e0b"
}
,{
"testCaseDescription": "go-string-literals-delete-replacement-test",
@ -380,9 +380,9 @@
"filePaths": [
"string-literals.go"
],
"sha1": "1440e905cbe8446911909fb14761372b8f01c91e",
"sha1": "c88eef92c457e4694e39cddb184db5d9d0a03e0b",
"gitDir": "test/corpus/repos/go",
"sha2": "6a90535f6a3c434f93d4ef097bebc733045f2393"
"sha2": "a639d090120cda26b20fab17776d15a963e85cf3"
}
,{
"testCaseDescription": "go-string-literals-delete-test",
@ -411,9 +411,9 @@
"filePaths": [
"string-literals.go"
],
"sha1": "6a90535f6a3c434f93d4ef097bebc733045f2393",
"sha1": "a639d090120cda26b20fab17776d15a963e85cf3",
"gitDir": "test/corpus/repos/go",
"sha2": "bbb95085c906a4fbba0783fe6d268a64d145e051"
"sha2": "5b647603f77b9d0ce91546051c179d802fe27924"
}
,{
"testCaseDescription": "go-string-literals-delete-rest-test",
@ -442,7 +442,7 @@
"filePaths": [
"string-literals.go"
],
"sha1": "bbb95085c906a4fbba0783fe6d268a64d145e051",
"sha1": "5b647603f77b9d0ce91546051c179d802fe27924",
"gitDir": "test/corpus/repos/go",
"sha2": "da6ba76c0e36f88a7c6255a43bfccca89a6e85ea"
"sha2": "bef239ae3dabe98da46b59e5b5d53e85f374c392"
}]

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -145,9 +145,9 @@
"filePaths": [
"switch-statements.go"
],
"sha1": "567ea1f4317f1c40f6132f429590c78238313778",
"sha1": "201fd290f19184f934742f0a871f7a60e08ac617",
"gitDir": "test/corpus/repos/go",
"sha2": "162708d5ed1a15aa3b73a45694d03caa8ff64600"
"sha2": "594fef69c62509da593cb28dec4b041a8c195af2"
}
,{
"testCaseDescription": "go-switch-statements-replacement-insert-test",
@ -188,9 +188,9 @@
"filePaths": [
"switch-statements.go"
],
"sha1": "162708d5ed1a15aa3b73a45694d03caa8ff64600",
"sha1": "594fef69c62509da593cb28dec4b041a8c195af2",
"gitDir": "test/corpus/repos/go",
"sha2": "aa251d2911ca68348719363e2aa8f828b93e2d55"
"sha2": "bf0bf30e63d7f742b01826c60df91d5d16ac93da"
}
,{
"testCaseDescription": "go-switch-statements-delete-insert-test",
@ -366,9 +366,9 @@
"filePaths": [
"switch-statements.go"
],
"sha1": "aa251d2911ca68348719363e2aa8f828b93e2d55",
"sha1": "bf0bf30e63d7f742b01826c60df91d5d16ac93da",
"gitDir": "test/corpus/repos/go",
"sha2": "936422d732d43522ae10af4055d8d6382e210f39"
"sha2": "f6d89ed06e8d5cff27f8399256c0a9fe1545e34c"
}
,{
"testCaseDescription": "go-switch-statements-replacement-test",
@ -544,9 +544,9 @@
"filePaths": [
"switch-statements.go"
],
"sha1": "936422d732d43522ae10af4055d8d6382e210f39",
"sha1": "f6d89ed06e8d5cff27f8399256c0a9fe1545e34c",
"gitDir": "test/corpus/repos/go",
"sha2": "503efebbdb6c6e4df282ade7e83c558d1ad9c96d"
"sha2": "788a22dea10c7ff3973860a089e9e10ff3c74e9f"
}
,{
"testCaseDescription": "go-switch-statements-delete-replacement-test",
@ -965,9 +965,9 @@
"filePaths": [
"switch-statements.go"
],
"sha1": "503efebbdb6c6e4df282ade7e83c558d1ad9c96d",
"sha1": "788a22dea10c7ff3973860a089e9e10ff3c74e9f",
"gitDir": "test/corpus/repos/go",
"sha2": "dafbac873c7724191039372a76adb7002870a599"
"sha2": "129f52c77c551c74cbbc0e31bf421ecf20b46ed9"
}
,{
"testCaseDescription": "go-switch-statements-delete-test",
@ -1008,9 +1008,9 @@
"filePaths": [
"switch-statements.go"
],
"sha1": "dafbac873c7724191039372a76adb7002870a599",
"sha1": "129f52c77c551c74cbbc0e31bf421ecf20b46ed9",
"gitDir": "test/corpus/repos/go",
"sha2": "a380e54d9043d02105b40b04ab6db3f724bb2a3c"
"sha2": "01ae6bc53d1baa33f5969facb25558c184c5830d"
}
,{
"testCaseDescription": "go-switch-statements-delete-rest-test",
@ -1159,7 +1159,7 @@
"filePaths": [
"switch-statements.go"
],
"sha1": "a380e54d9043d02105b40b04ab6db3f724bb2a3c",
"sha1": "01ae6bc53d1baa33f5969facb25558c184c5830d",
"gitDir": "test/corpus/repos/go",
"sha2": "48b6876aec3649bd6c1a5d151bc936a44ae2497c"
"sha2": "35e15f63cf0aaf0d724edd29d7d7f9f924b43136"
}]

View File

@ -1,8 +1,8 @@
[{
"testCaseDescription": "go-type-assertion-expression-insert-test",
"testCaseDescription": "go-type-assertion-expressions-insert-test",
"expectedResult": {
"changes": {
"type-assertion-expression.go": [
"type-assertion-expressions.go": [
{
"span": {
"insert": {
@ -53,17 +53,17 @@
"errors": {}
},
"filePaths": [
"type-assertion-expression.go"
"type-assertion-expressions.go"
],
"sha1": "fe04af2ad66201c4f472821797ba453c97a710e6",
"sha1": "7490ff9bbea27103f87d0c85d597020fac40e3fb",
"gitDir": "test/corpus/repos/go",
"sha2": "25fbda39d90e285cddf9c7cd8c481c909262ba0f"
"sha2": "2e54c39a203a08af7f999de0baf15580cbda1d22"
}
,{
"testCaseDescription": "go-type-assertion-expression-replacement-insert-test",
"testCaseDescription": "go-type-assertion-expressions-replacement-insert-test",
"expectedResult": {
"changes": {
"type-assertion-expression.go": [
"type-assertion-expressions.go": [
{
"span": {
"replace": [
@ -96,17 +96,17 @@
"errors": {}
},
"filePaths": [
"type-assertion-expression.go"
"type-assertion-expressions.go"
],
"sha1": "25fbda39d90e285cddf9c7cd8c481c909262ba0f",
"sha1": "2e54c39a203a08af7f999de0baf15580cbda1d22",
"gitDir": "test/corpus/repos/go",
"sha2": "6f63e1717a79c8884d9abb64f4669fd98e71f97f"
"sha2": "22f2edcdd3293a3a5648a936ebfdfbcdbcd98f4b"
}
,{
"testCaseDescription": "go-type-assertion-expression-delete-insert-test",
"testCaseDescription": "go-type-assertion-expressions-delete-insert-test",
"expectedResult": {
"changes": {
"type-assertion-expression.go": [
"type-assertion-expressions.go": [
{
"span": {
"replace": [
@ -193,17 +193,17 @@
"errors": {}
},
"filePaths": [
"type-assertion-expression.go"
"type-assertion-expressions.go"
],
"sha1": "6f63e1717a79c8884d9abb64f4669fd98e71f97f",
"sha1": "22f2edcdd3293a3a5648a936ebfdfbcdbcd98f4b",
"gitDir": "test/corpus/repos/go",
"sha2": "920b339dc66e0f6c238ab07ff49b85a4074f5883"
"sha2": "d18ded6ee56355e185b7271655f6c9c4a0f06b52"
}
,{
"testCaseDescription": "go-type-assertion-expression-replacement-test",
"testCaseDescription": "go-type-assertion-expressions-replacement-test",
"expectedResult": {
"changes": {
"type-assertion-expression.go": [
"type-assertion-expressions.go": [
{
"span": {
"replace": [
@ -290,17 +290,17 @@
"errors": {}
},
"filePaths": [
"type-assertion-expression.go"
"type-assertion-expressions.go"
],
"sha1": "920b339dc66e0f6c238ab07ff49b85a4074f5883",
"sha1": "d18ded6ee56355e185b7271655f6c9c4a0f06b52",
"gitDir": "test/corpus/repos/go",
"sha2": "ba4bcabdcbe24af9b49a7f404733f7d4adf91865"
"sha2": "912f416d32efae6d1e0b302140e3e48e7f809ae9"
}
,{
"testCaseDescription": "go-type-assertion-expression-delete-replacement-test",
"testCaseDescription": "go-type-assertion-expressions-delete-replacement-test",
"expectedResult": {
"changes": {
"type-assertion-expression.go": [
"type-assertion-expressions.go": [
{
"span": {
"delete": {
@ -441,17 +441,17 @@
"errors": {}
},
"filePaths": [
"type-assertion-expression.go"
"type-assertion-expressions.go"
],
"sha1": "ba4bcabdcbe24af9b49a7f404733f7d4adf91865",
"sha1": "912f416d32efae6d1e0b302140e3e48e7f809ae9",
"gitDir": "test/corpus/repos/go",
"sha2": "a31ff34fd6e63e8f1d50e43f4de9b879d64d134f"
"sha2": "921e7de063daf1b99ca28bf11aa5d0fc498c8564"
}
,{
"testCaseDescription": "go-type-assertion-expression-delete-test",
"testCaseDescription": "go-type-assertion-expressions-delete-test",
"expectedResult": {
"changes": {
"type-assertion-expression.go": [
"type-assertion-expressions.go": [
{
"span": {
"replace": [
@ -484,17 +484,17 @@
"errors": {}
},
"filePaths": [
"type-assertion-expression.go"
"type-assertion-expressions.go"
],
"sha1": "a31ff34fd6e63e8f1d50e43f4de9b879d64d134f",
"sha1": "921e7de063daf1b99ca28bf11aa5d0fc498c8564",
"gitDir": "test/corpus/repos/go",
"sha2": "ade8f04c3c3ad76da424f517dc06d67446e4f7f0"
"sha2": "a3d17d85bd58baf3bdcfa275043c37525bd00f6c"
}
,{
"testCaseDescription": "go-type-assertion-expression-delete-rest-test",
"testCaseDescription": "go-type-assertion-expressions-delete-rest-test",
"expectedResult": {
"changes": {
"type-assertion-expression.go": [
"type-assertion-expressions.go": [
{
"span": {
"delete": {
@ -545,9 +545,9 @@
"errors": {}
},
"filePaths": [
"type-assertion-expression.go"
"type-assertion-expressions.go"
],
"sha1": "ade8f04c3c3ad76da424f517dc06d67446e4f7f0",
"sha1": "a3d17d85bd58baf3bdcfa275043c37525bd00f6c",
"gitDir": "test/corpus/repos/go",
"sha2": "ce9514dd70d7bbc236077d61f3845973b77a682b"
"sha2": "b1ca59fb4507b74dc9cab04a07134ee7322b32e3"
}]

View File

@ -1,8 +1,8 @@
[{
"testCaseDescription": "go-type-conversion-expression-insert-test",
"testCaseDescription": "go-type-conversion-expressions-insert-test",
"expectedResult": {
"changes": {
"type-conversion-expression.go": [
"type-conversion-expressions.go": [
{
"span": {
"replace": [
@ -35,17 +35,17 @@
"errors": {}
},
"filePaths": [
"type-conversion-expression.go"
"type-conversion-expressions.go"
],
"sha1": "ce9514dd70d7bbc236077d61f3845973b77a682b",
"sha1": "ec3e6fa8f0e5bd004700dc74eb4f5b58aa2c8260",
"gitDir": "test/corpus/repos/go",
"sha2": "b08a477e87c61c457907192f88bc0a8774e55766"
"sha2": "2dd9e9ea6f574d3ece2cf7b11e02ab9df897162d"
}
,{
"testCaseDescription": "go-type-conversion-expression-replacement-insert-test",
"testCaseDescription": "go-type-conversion-expressions-replacement-insert-test",
"expectedResult": {
"changes": {
"type-conversion-expression.go": [
"type-conversion-expressions.go": [
{
"span": {
"insert": {
@ -471,17 +471,17 @@
"errors": {}
},
"filePaths": [
"type-conversion-expression.go"
"type-conversion-expressions.go"
],
"sha1": "b08a477e87c61c457907192f88bc0a8774e55766",
"sha1": "2dd9e9ea6f574d3ece2cf7b11e02ab9df897162d",
"gitDir": "test/corpus/repos/go",
"sha2": "ced9e7f9c86e43d7fb55d41f885683a8fbb62bf2"
"sha2": "2af7ac0538d3f5e696d65d1858053d2a3157e14f"
}
,{
"testCaseDescription": "go-type-conversion-expression-delete-insert-test",
"testCaseDescription": "go-type-conversion-expressions-delete-insert-test",
"expectedResult": {
"changes": {
"type-conversion-expression.go": [
"type-conversion-expressions.go": [
{
"span": {
"replace": [
@ -865,17 +865,17 @@
"errors": {}
},
"filePaths": [
"type-conversion-expression.go"
"type-conversion-expressions.go"
],
"sha1": "ced9e7f9c86e43d7fb55d41f885683a8fbb62bf2",
"sha1": "2af7ac0538d3f5e696d65d1858053d2a3157e14f",
"gitDir": "test/corpus/repos/go",
"sha2": "3b0138d8c50fa78703e4af5bc55cbfc50ab067f4"
"sha2": "039be13a4345b39d9705e89b17f198642ea4514d"
}
,{
"testCaseDescription": "go-type-conversion-expression-replacement-test",
"testCaseDescription": "go-type-conversion-expressions-replacement-test",
"expectedResult": {
"changes": {
"type-conversion-expression.go": [
"type-conversion-expressions.go": [
{
"span": {
"replace": [
@ -1259,17 +1259,17 @@
"errors": {}
},
"filePaths": [
"type-conversion-expression.go"
"type-conversion-expressions.go"
],
"sha1": "3b0138d8c50fa78703e4af5bc55cbfc50ab067f4",
"sha1": "039be13a4345b39d9705e89b17f198642ea4514d",
"gitDir": "test/corpus/repos/go",
"sha2": "4cfab68a8fd8aab8b43ff48ab7098f78264e0e53"
"sha2": "e80fdad13ea4c3d385308073020657ee5eb2879c"
}
,{
"testCaseDescription": "go-type-conversion-expression-delete-replacement-test",
"testCaseDescription": "go-type-conversion-expressions-delete-replacement-test",
"expectedResult": {
"changes": {
"type-conversion-expression.go": [
"type-conversion-expressions.go": [
{
"span": {
"delete": {
@ -1905,17 +1905,17 @@
"errors": {}
},
"filePaths": [
"type-conversion-expression.go"
"type-conversion-expressions.go"
],
"sha1": "4cfab68a8fd8aab8b43ff48ab7098f78264e0e53",
"sha1": "e80fdad13ea4c3d385308073020657ee5eb2879c",
"gitDir": "test/corpus/repos/go",
"sha2": "70d714b2a36dd370bfb8438b7c44a5d6c94d8102"
"sha2": "12358e66d509450d9e290d56c273d4cac7534e16"
}
,{
"testCaseDescription": "go-type-conversion-expression-delete-test",
"testCaseDescription": "go-type-conversion-expressions-delete-test",
"expectedResult": {
"changes": {
"type-conversion-expression.go": [
"type-conversion-expressions.go": [
{
"span": {
"delete": {
@ -2131,17 +2131,17 @@
"errors": {}
},
"filePaths": [
"type-conversion-expression.go"
"type-conversion-expressions.go"
],
"sha1": "70d714b2a36dd370bfb8438b7c44a5d6c94d8102",
"sha1": "12358e66d509450d9e290d56c273d4cac7534e16",
"gitDir": "test/corpus/repos/go",
"sha2": "08c4be090af4b52eb36fe08b8a65081a45fc2122"
"sha2": "f12e4e38760e850ecadb8587abac34d9b21940b8"
}
,{
"testCaseDescription": "go-type-conversion-expression-delete-rest-test",
"testCaseDescription": "go-type-conversion-expressions-delete-rest-test",
"expectedResult": {
"changes": {
"type-conversion-expression.go": [
"type-conversion-expressions.go": [
{
"span": {
"replace": [
@ -2174,9 +2174,9 @@
"errors": {}
},
"filePaths": [
"type-conversion-expression.go"
"type-conversion-expressions.go"
],
"sha1": "08c4be090af4b52eb36fe08b8a65081a45fc2122",
"sha1": "f12e4e38760e850ecadb8587abac34d9b21940b8",
"gitDir": "test/corpus/repos/go",
"sha2": "376daa245a78358736c0dc17d4026fecc4060fee"
"sha2": "c6e378458d00f3303563a027e8517d0d1ab76d84"
}]

View File

@ -100,9 +100,9 @@
"filePaths": [
"type-declarations.go"
],
"sha1": "b5fcf0b460b938c84f6b758f163f2e96ed7ee970",
"sha1": "539b2342fb439592df8f001e686ee4a1a76ff91b",
"gitDir": "test/corpus/repos/go",
"sha2": "07cc75a4b2bebd42e7a08f3747d33e772ac371a5"
"sha2": "4844865abf525a71002625de226b2ef5dac3f0bc"
}
,{
"testCaseDescription": "go-type-declarations-replacement-insert-test",
@ -296,9 +296,9 @@
"filePaths": [
"type-declarations.go"
],
"sha1": "07cc75a4b2bebd42e7a08f3747d33e772ac371a5",
"sha1": "4844865abf525a71002625de226b2ef5dac3f0bc",
"gitDir": "test/corpus/repos/go",
"sha2": "d3f7238179c921f04b8c3b79a8756434e5e580b3"
"sha2": "c7695b3471d36afaddcd9bdd4a9139fe7a6246cd"
}
,{
"testCaseDescription": "go-type-declarations-delete-insert-test",
@ -459,9 +459,9 @@
"filePaths": [
"type-declarations.go"
],
"sha1": "d3f7238179c921f04b8c3b79a8756434e5e580b3",
"sha1": "c7695b3471d36afaddcd9bdd4a9139fe7a6246cd",
"gitDir": "test/corpus/repos/go",
"sha2": "a40d73a824a4c78069e79c6b57eec71f1d920d5c"
"sha2": "7836427e085a7858ede5115a1229d0579b0c6de0"
}
,{
"testCaseDescription": "go-type-declarations-replacement-test",
@ -622,9 +622,9 @@
"filePaths": [
"type-declarations.go"
],
"sha1": "a40d73a824a4c78069e79c6b57eec71f1d920d5c",
"sha1": "7836427e085a7858ede5115a1229d0579b0c6de0",
"gitDir": "test/corpus/repos/go",
"sha2": "0cc4fc14c4268d0f8ba462c3c7323cfe395d9871"
"sha2": "0152d385323687028328b33d096ca4e10861e0e7"
}
,{
"testCaseDescription": "go-type-declarations-delete-replacement-test",
@ -908,9 +908,9 @@
"filePaths": [
"type-declarations.go"
],
"sha1": "0cc4fc14c4268d0f8ba462c3c7323cfe395d9871",
"sha1": "0152d385323687028328b33d096ca4e10861e0e7",
"gitDir": "test/corpus/repos/go",
"sha2": "892d806ca7dc84c4f54b0b2b086f7574fdd8eba5"
"sha2": "12394ab61331157d8e6c5691bfe3672c8edbe265"
}
,{
"testCaseDescription": "go-type-declarations-delete-test",
@ -1014,9 +1014,9 @@
"filePaths": [
"type-declarations.go"
],
"sha1": "892d806ca7dc84c4f54b0b2b086f7574fdd8eba5",
"sha1": "12394ab61331157d8e6c5691bfe3672c8edbe265",
"gitDir": "test/corpus/repos/go",
"sha2": "34111d14dd5dbe452fdc167590f4348f139b38bd"
"sha2": "e189ae3d603efe4d444d0c0b505505b1372306a6"
}
,{
"testCaseDescription": "go-type-declarations-delete-rest-test",
@ -1120,7 +1120,7 @@
"filePaths": [
"type-declarations.go"
],
"sha1": "34111d14dd5dbe452fdc167590f4348f139b38bd",
"sha1": "e189ae3d603efe4d444d0c0b505505b1372306a6",
"gitDir": "test/corpus/repos/go",
"sha2": "17230bf7eba6f34404f743cccd264ea120bc1e78"
"sha2": "f5321d8bf3849b79986c4bfc5e82607ddbc8dad4"
}]

View File

@ -0,0 +1,595 @@
[{
"testCaseDescription": "go-type-switch-statements-insert-test",
"expectedResult": {
"changes": {
"type-switch-statements.go": [
{
"span": {
"insert": {
"start": [
3,
8
],
"end": [
3,
9
]
}
},
"summary": "Added the 'e' identifier"
},
{
"span": {
"insert": {
"start": [
4,
10
],
"end": [
4,
16
]
}
},
"summary": "Added the 'Person' identifier"
},
{
"span": {
"insert": {
"start": [
5,
5
],
"end": [
5,
8
]
}
},
"summary": "Added the 'a()' function call"
},
{
"span": {
"insert": {
"start": [
6,
9
],
"end": [
6,
12
]
}
},
"summary": "Added the 'Dog' identifier"
},
{
"span": {
"insert": {
"start": [
7,
5
],
"end": [
7,
10
]
}
},
"summary": "Added the 'break' break_statement"
}
]
},
"errors": {}
},
"filePaths": [
"type-switch-statements.go"
],
"sha1": "be84a9ca3fc8bebfe1a9e4b70298e30b4684cc41",
"gitDir": "test/corpus/repos/go",
"sha2": "92caae239a17254ad1f5088c7d5d142a90e644de"
}
,{
"testCaseDescription": "go-type-switch-statements-replacement-insert-test",
"expectedResult": {
"changes": {
"type-switch-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
9,
1
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"type-switch-statements.go"
],
"sha1": "92caae239a17254ad1f5088c7d5d142a90e644de",
"gitDir": "test/corpus/repos/go",
"sha2": "2fc4780a02aad67bcc8da5ac72fbfb40b3cf8261"
}
,{
"testCaseDescription": "go-type-switch-statements-delete-insert-test",
"expectedResult": {
"changes": {
"type-switch-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
8
],
"end": [
3,
9
]
},
{
"start": [
3,
8
],
"end": [
3,
9
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'e' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"type-switch-statements.go"
],
"sha1": "2fc4780a02aad67bcc8da5ac72fbfb40b3cf8261",
"gitDir": "test/corpus/repos/go",
"sha2": "c617656693d6d7a0792b4423674aec4509ff0326"
}
,{
"testCaseDescription": "go-type-switch-statements-replacement-test",
"expectedResult": {
"changes": {
"type-switch-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
8
],
"end": [
3,
9
]
},
{
"start": [
3,
8
],
"end": [
3,
9
]
}
]
},
"summary": "Replaced the 'e' identifier with the 'b' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"type-switch-statements.go"
],
"sha1": "c617656693d6d7a0792b4423674aec4509ff0326",
"gitDir": "test/corpus/repos/go",
"sha2": "d2a322da3250a177cea4a622613db1cb37b2d4a6"
}
,{
"testCaseDescription": "go-type-switch-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"type-switch-statements.go": [
{
"span": {
"delete": {
"start": [
3,
8
],
"end": [
3,
9
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
4,
10
],
"end": [
4,
16
]
}
},
"summary": "Deleted the 'Person' identifier"
},
{
"span": {
"delete": {
"start": [
5,
5
],
"end": [
5,
8
]
}
},
"summary": "Deleted the 'a()' function call"
},
{
"span": {
"delete": {
"start": [
6,
9
],
"end": [
6,
12
]
}
},
"summary": "Deleted the 'Dog' identifier"
},
{
"span": {
"delete": {
"start": [
7,
5
],
"end": [
7,
10
]
}
},
"summary": "Deleted the 'break' break_statement"
},
{
"span": {
"delete": {
"start": [
9,
8
],
"end": [
9,
9
]
}
},
"summary": "Deleted the 'e' identifier"
},
{
"span": {
"delete": {
"start": [
10,
10
],
"end": [
10,
16
]
}
},
"summary": "Deleted the 'Person' identifier"
},
{
"span": {
"delete": {
"start": [
11,
5
],
"end": [
11,
8
]
}
},
"summary": "Deleted the 'a()' function call"
},
{
"span": {
"delete": {
"start": [
12,
9
],
"end": [
12,
12
]
}
},
"summary": "Deleted the 'Dog' identifier"
},
{
"span": {
"delete": {
"start": [
13,
5
],
"end": [
13,
10
]
}
},
"summary": "Deleted the 'break' break_statement"
},
{
"span": {
"insert": {
"start": [
9,
8
],
"end": [
9,
9
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
10,
10
],
"end": [
10,
16
]
}
},
"summary": "Added the 'Person' identifier"
},
{
"span": {
"insert": {
"start": [
11,
5
],
"end": [
11,
8
]
}
},
"summary": "Added the 'a()' function call"
},
{
"span": {
"insert": {
"start": [
12,
9
],
"end": [
12,
12
]
}
},
"summary": "Added the 'Dog' identifier"
},
{
"span": {
"insert": {
"start": [
13,
5
],
"end": [
13,
10
]
}
},
"summary": "Added the 'break' break_statement"
}
]
},
"errors": {}
},
"filePaths": [
"type-switch-statements.go"
],
"sha1": "d2a322da3250a177cea4a622613db1cb37b2d4a6",
"gitDir": "test/corpus/repos/go",
"sha2": "8b845324b507b6712321e90e8195788c733b29b1"
}
,{
"testCaseDescription": "go-type-switch-statements-delete-test",
"expectedResult": {
"changes": {
"type-switch-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
9,
1
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"type-switch-statements.go"
],
"sha1": "8b845324b507b6712321e90e8195788c733b29b1",
"gitDir": "test/corpus/repos/go",
"sha2": "b7a22c564b3aea776ac41ed4323a1836406755ca"
}
,{
"testCaseDescription": "go-type-switch-statements-delete-rest-test",
"expectedResult": {
"changes": {
"type-switch-statements.go": [
{
"span": {
"delete": {
"start": [
3,
8
],
"end": [
3,
9
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
4,
10
],
"end": [
4,
16
]
}
},
"summary": "Deleted the 'Person' identifier"
},
{
"span": {
"delete": {
"start": [
5,
5
],
"end": [
5,
8
]
}
},
"summary": "Deleted the 'a()' function call"
},
{
"span": {
"delete": {
"start": [
6,
9
],
"end": [
6,
12
]
}
},
"summary": "Deleted the 'Dog' identifier"
},
{
"span": {
"delete": {
"start": [
7,
5
],
"end": [
7,
10
]
}
},
"summary": "Deleted the 'break' break_statement"
}
]
},
"errors": {}
},
"filePaths": [
"type-switch-statements.go"
],
"sha1": "b7a22c564b3aea776ac41ed4323a1836406755ca",
"gitDir": "test/corpus/repos/go",
"sha2": "5813d44fbe76a0a6ac0e89faa63db27ba74334eb"
}]

View File

@ -37,9 +37,9 @@
"filePaths": [
"unary-expressions.go"
],
"sha1": "376daa245a78358736c0dc17d4026fecc4060fee",
"sha1": "c6e378458d00f3303563a027e8517d0d1ab76d84",
"gitDir": "test/corpus/repos/go",
"sha2": "65c4ee1e8a427a7377a6a9806a05c495aba1c313"
"sha2": "a087f7c628cf9bc9c07b5c9999bd3338438611e7"
}
,{
"testCaseDescription": "go-unary-expressions-replacement-insert-test",
@ -113,9 +113,9 @@
"filePaths": [
"unary-expressions.go"
],
"sha1": "65c4ee1e8a427a7377a6a9806a05c495aba1c313",
"sha1": "a087f7c628cf9bc9c07b5c9999bd3338438611e7",
"gitDir": "test/corpus/repos/go",
"sha2": "a7a582327dd47797f6918292d50f91b0e65186b5"
"sha2": "e4d14c655c1e56781a8d1a8217659ee8bdec91cc"
}
,{
"testCaseDescription": "go-unary-expressions-delete-insert-test",
@ -183,9 +183,9 @@
"filePaths": [
"unary-expressions.go"
],
"sha1": "a7a582327dd47797f6918292d50f91b0e65186b5",
"sha1": "e4d14c655c1e56781a8d1a8217659ee8bdec91cc",
"gitDir": "test/corpus/repos/go",
"sha2": "69392907cd272581e047a7f0715ee2a87cfc6fcb"
"sha2": "2d3f0f3042d42158086bf2b7c30bc35ec08a74c0"
}
,{
"testCaseDescription": "go-unary-expressions-replacement-test",
@ -253,9 +253,9 @@
"filePaths": [
"unary-expressions.go"
],
"sha1": "69392907cd272581e047a7f0715ee2a87cfc6fcb",
"sha1": "2d3f0f3042d42158086bf2b7c30bc35ec08a74c0",
"gitDir": "test/corpus/repos/go",
"sha2": "38f0ea80c998a387d101b8116a59ca65328244a3"
"sha2": "0312c432a300bcd9ae78265f01570e76235208bc"
}
,{
"testCaseDescription": "go-unary-expressions-delete-replacement-test",
@ -359,9 +359,9 @@
"filePaths": [
"unary-expressions.go"
],
"sha1": "38f0ea80c998a387d101b8116a59ca65328244a3",
"sha1": "0312c432a300bcd9ae78265f01570e76235208bc",
"gitDir": "test/corpus/repos/go",
"sha2": "fda266f6089bcaa289a02a624e9e434183b383aa"
"sha2": "87eace763a44e4723c44c130dc1684313ac67193"
}
,{
"testCaseDescription": "go-unary-expressions-delete-test",
@ -405,9 +405,9 @@
"filePaths": [
"unary-expressions.go"
],
"sha1": "fda266f6089bcaa289a02a624e9e434183b383aa",
"sha1": "87eace763a44e4723c44c130dc1684313ac67193",
"gitDir": "test/corpus/repos/go",
"sha2": "c643cb3d5b01025826a5a5b9e16132edeaeea1b1"
"sha2": "4ea92a27006c8c68c512ef3f28ba6d9156cd069d"
}
,{
"testCaseDescription": "go-unary-expressions-delete-rest-test",
@ -448,7 +448,7 @@
"filePaths": [
"unary-expressions.go"
],
"sha1": "c643cb3d5b01025826a5a5b9e16132edeaeea1b1",
"sha1": "4ea92a27006c8c68c512ef3f28ba6d9156cd069d",
"gitDir": "test/corpus/repos/go",
"sha2": "a2b011eb43cb7387b0c13f0af9c25357f0a815ea"
"sha2": "8576eb3bc6fa4d3ae5bb48b761bdce8fd3b13434"
}]

View File

@ -0,0 +1,514 @@
[{
"testCaseDescription": "go-var-declarations-with-no-expressions-insert-test",
"expectedResult": {
"changes": {},
"errors": {
"var-declarations-with-no-expressions.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
13
]
}
},
"summary": "Added the 'var zero int' at line 3, column 1 - line 3, column 13"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
20
]
}
},
"summary": "Added the 'var one, two uint64' at line 4, column 1 - line 4, column 20"
}
]
}
},
"filePaths": [
"var-declarations-with-no-expressions.go"
],
"sha1": "a0373be7140d30a4e948b39895b79992ccff01c2",
"gitDir": "test/corpus/repos/go",
"sha2": "2ee4cc039ae401778e33a613c9d0c700a54e1250"
}
,{
"testCaseDescription": "go-var-declarations-with-no-expressions-replacement-insert-test",
"expectedResult": {
"changes": {},
"errors": {
"var-declarations-with-no-expressions.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
10
]
}
},
"summary": "Added the 'var a int' at line 3, column 1 - line 3, column 10"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
16
]
}
},
"summary": "Added the 'var b, c uint64' at line 4, column 1 - line 4, column 16"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
13
]
}
},
"summary": "Added the 'var zero int' at line 5, column 1 - line 5, column 13"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
20
]
}
},
"summary": "Added the 'var one, two uint64' at line 6, column 1 - line 6, column 20"
}
]
}
},
"filePaths": [
"var-declarations-with-no-expressions.go"
],
"sha1": "2ee4cc039ae401778e33a613c9d0c700a54e1250",
"gitDir": "test/corpus/repos/go",
"sha2": "5744ab80199d5d4a3eee9696088067ba89550c61"
}
,{
"testCaseDescription": "go-var-declarations-with-no-expressions-delete-insert-test",
"expectedResult": {
"changes": {
"var-declarations-with-no-expressions.go": [
{
"span": {
"replace": [
{
"start": [
3,
5
],
"end": [
3,
6
]
},
{
"start": [
3,
5
],
"end": [
3,
9
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'zero' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
6
]
},
{
"start": [
4,
5
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'one' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
8
],
"end": [
4,
9
]
},
{
"start": [
4,
10
],
"end": [
4,
13
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'two' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-no-expressions.go"
],
"sha1": "5744ab80199d5d4a3eee9696088067ba89550c61",
"gitDir": "test/corpus/repos/go",
"sha2": "8b5319bff781096cfd0d0a3f2b581024d22713da"
}
,{
"testCaseDescription": "go-var-declarations-with-no-expressions-replacement-test",
"expectedResult": {
"changes": {
"var-declarations-with-no-expressions.go": [
{
"span": {
"replace": [
{
"start": [
3,
5
],
"end": [
3,
9
]
},
{
"start": [
3,
5
],
"end": [
3,
6
]
}
]
},
"summary": "Replaced the 'zero' identifier with the 'a' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
8
]
},
{
"start": [
4,
5
],
"end": [
4,
6
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'b' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
10
],
"end": [
4,
13
]
},
{
"start": [
4,
8
],
"end": [
4,
9
]
}
]
},
"summary": "Replaced the 'two' identifier with the 'c' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-no-expressions.go"
],
"sha1": "8b5319bff781096cfd0d0a3f2b581024d22713da",
"gitDir": "test/corpus/repos/go",
"sha2": "ee5db282261e76b3cf21985d34d9058adb93e6ce"
}
,{
"testCaseDescription": "go-var-declarations-with-no-expressions-delete-replacement-test",
"expectedResult": {
"changes": {},
"errors": {
"var-declarations-with-no-expressions.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
10
]
}
},
"summary": "Deleted the 'var a int' at line 3, column 1 - line 3, column 10"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
16
]
}
},
"summary": "Deleted the 'var b, c uint64' at line 4, column 1 - line 4, column 16"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
13
]
}
},
"summary": "Deleted the 'var zero int' at line 5, column 1 - line 5, column 13"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
20
]
}
},
"summary": "Deleted the 'var one, two uint64' at line 6, column 1 - line 6, column 20"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
10
]
}
},
"summary": "Added the 'var a int' at line 5, column 1 - line 5, column 10"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
16
]
}
},
"summary": "Added the 'var b, c uint64' at line 6, column 1 - line 6, column 16"
}
]
}
},
"filePaths": [
"var-declarations-with-no-expressions.go"
],
"sha1": "ee5db282261e76b3cf21985d34d9058adb93e6ce",
"gitDir": "test/corpus/repos/go",
"sha2": "453ef0406ebe7ccec1642f03fed01998057d94f3"
}
,{
"testCaseDescription": "go-var-declarations-with-no-expressions-delete-test",
"expectedResult": {
"changes": {},
"errors": {
"var-declarations-with-no-expressions.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
13
]
}
},
"summary": "Deleted the 'var zero int' at line 3, column 1 - line 3, column 13"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
20
]
}
},
"summary": "Deleted the 'var one, two uint64' at line 4, column 1 - line 4, column 20"
}
]
}
},
"filePaths": [
"var-declarations-with-no-expressions.go"
],
"sha1": "453ef0406ebe7ccec1642f03fed01998057d94f3",
"gitDir": "test/corpus/repos/go",
"sha2": "c32dd110c5fdefba8664c8cedb619b6682c303c9"
}
,{
"testCaseDescription": "go-var-declarations-with-no-expressions-delete-rest-test",
"expectedResult": {
"changes": {},
"errors": {
"var-declarations-with-no-expressions.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
10
]
}
},
"summary": "Deleted the 'var a int' at line 3, column 1 - line 3, column 10"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
16
]
}
},
"summary": "Deleted the 'var b, c uint64' at line 4, column 1 - line 4, column 16"
}
]
}
},
"filePaths": [
"var-declarations-with-no-expressions.go"
],
"sha1": "c32dd110c5fdefba8664c8cedb619b6682c303c9",
"gitDir": "test/corpus/repos/go",
"sha2": "583c308d9082412faf570d96282d5a5397086ca5"
}]

View File

@ -0,0 +1,514 @@
[{
"testCaseDescription": "go-var-declarations-with-types-insert-test",
"expectedResult": {
"changes": {
"var-declarations-with-types.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
17
]
}
},
"summary": "Added the 'zero' variable"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
27
]
}
},
"summary": "Added the 'var one, two uint64 = 1, 2' variable"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-types.go"
],
"sha1": "3dc8afdc07cac6ee2d04e2e8c098f4956f88ccf3",
"gitDir": "test/corpus/repos/go",
"sha2": "aee145be5f694e605fb901c2e0410ec7358b5dcd"
}
,{
"testCaseDescription": "go-var-declarations-with-types-replacement-insert-test",
"expectedResult": {
"changes": {
"var-declarations-with-types.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
14
]
}
},
"summary": "Added the 'a' variable"
},
{
"span": {
"insert": {
"start": [
4,
2
],
"end": [
4,
24
]
}
},
"summary": "Added the 'var b, c uint64 = 1, 2' variable"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
17
]
}
},
"summary": "Added the 'zero' variable"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
27
]
}
},
"summary": "Added the 'var one, two uint64 = 1, 2' variable"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-types.go"
],
"sha1": "aee145be5f694e605fb901c2e0410ec7358b5dcd",
"gitDir": "test/corpus/repos/go",
"sha2": "fc26be94a948d2114fc4c54a78fb4136779acc41"
}
,{
"testCaseDescription": "go-var-declarations-with-types-delete-insert-test",
"expectedResult": {
"changes": {
"var-declarations-with-types.go": [
{
"span": {
"replace": [
{
"start": [
3,
5
],
"end": [
3,
6
]
},
{
"start": [
3,
5
],
"end": [
3,
9
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'zero' identifier in the zero variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
7
]
},
{
"start": [
4,
5
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'one' identifier in the var one, two uint64 = 1, 2 variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
4,
9
],
"end": [
4,
10
]
},
{
"start": [
4,
10
],
"end": [
4,
13
]
}
]
},
"summary": "Replaced the 'c' identifier with the 'two' identifier in the var one, two uint64 = 1, 2 variable of the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-types.go"
],
"sha1": "fc26be94a948d2114fc4c54a78fb4136779acc41",
"gitDir": "test/corpus/repos/go",
"sha2": "4fb068056bdd4286aa58f1b999f90d4246803391"
}
,{
"testCaseDescription": "go-var-declarations-with-types-replacement-test",
"expectedResult": {
"changes": {
"var-declarations-with-types.go": [
{
"span": {
"replace": [
{
"start": [
3,
5
],
"end": [
3,
9
]
},
{
"start": [
3,
5
],
"end": [
3,
6
]
}
]
},
"summary": "Replaced the 'zero' identifier with the 'a' identifier in the a variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
4,
5
],
"end": [
4,
8
]
},
{
"start": [
4,
6
],
"end": [
4,
7
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'b' identifier in the var b, c uint64 = 1, 2 variable of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
4,
10
],
"end": [
4,
13
]
},
{
"start": [
4,
9
],
"end": [
4,
10
]
}
]
},
"summary": "Replaced the 'two' identifier with the 'c' identifier in the var b, c uint64 = 1, 2 variable of the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-types.go"
],
"sha1": "4fb068056bdd4286aa58f1b999f90d4246803391",
"gitDir": "test/corpus/repos/go",
"sha2": "a313d3aa7e83e437f6933f2179854544c54d1755"
}
,{
"testCaseDescription": "go-var-declarations-with-types-delete-replacement-test",
"expectedResult": {
"changes": {
"var-declarations-with-types.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
14
]
}
},
"summary": "Deleted the 'a' variable"
},
{
"span": {
"delete": {
"start": [
4,
2
],
"end": [
4,
24
]
}
},
"summary": "Deleted the 'var b, c uint64 = 1, 2' variable"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
17
]
}
},
"summary": "Deleted the 'zero' variable"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
27
]
}
},
"summary": "Deleted the 'var one, two uint64 = 1, 2' variable"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
14
]
}
},
"summary": "Added the 'a' variable"
},
{
"span": {
"insert": {
"start": [
6,
2
],
"end": [
6,
24
]
}
},
"summary": "Added the 'var b, c uint64 = 1, 2' variable"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-types.go"
],
"sha1": "a313d3aa7e83e437f6933f2179854544c54d1755",
"gitDir": "test/corpus/repos/go",
"sha2": "9dd2b1262371e445dc0a3697354598d8a71d43c2"
}
,{
"testCaseDescription": "go-var-declarations-with-types-delete-test",
"expectedResult": {
"changes": {
"var-declarations-with-types.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
17
]
}
},
"summary": "Deleted the 'zero' variable"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
27
]
}
},
"summary": "Deleted the 'var one, two uint64 = 1, 2' variable"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-types.go"
],
"sha1": "9dd2b1262371e445dc0a3697354598d8a71d43c2",
"gitDir": "test/corpus/repos/go",
"sha2": "b827c42d91161e710c98ae3f3811c9c49e7b2c2f"
}
,{
"testCaseDescription": "go-var-declarations-with-types-delete-rest-test",
"expectedResult": {
"changes": {
"var-declarations-with-types.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
14
]
}
},
"summary": "Deleted the 'a' variable"
},
{
"span": {
"delete": {
"start": [
4,
2
],
"end": [
4,
24
]
}
},
"summary": "Deleted the 'var b, c uint64 = 1, 2' variable"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations-with-types.go"
],
"sha1": "b827c42d91161e710c98ae3f3811c9c49e7b2c2f",
"gitDir": "test/corpus/repos/go",
"sha2": "b4db98cbac60696d2d301dcd532c38fd976b219f"
}]

View File

@ -1,9 +1,9 @@
[{
"testCaseDescription": "go-var-declarations-insert-test",
"testCaseDescription": "go-var-declarations-without-types-insert-test",
"expectedResult": {
"changes": {},
"errors": {
"var-declarations.go": [
"var-declarations-without-types.go": [
{
"span": {
"insert": {
@ -23,18 +23,18 @@
}
},
"filePaths": [
"var-declarations.go"
"var-declarations-without-types.go"
],
"sha1": "19bdc3165d12d0552f650a7de287e8b34d5683f2",
"sha1": "277df901f3cbba02c3166144e6938eee7f5b7478",
"gitDir": "test/corpus/repos/go",
"sha2": "8730812ed6347a52c20e5a5089d405a4e577fa1e"
"sha2": "7a269fb22af1a06dced019f09d4d01a57aa767d4"
}
,{
"testCaseDescription": "go-var-declarations-replacement-insert-test",
"testCaseDescription": "go-var-declarations-without-types-replacement-insert-test",
"expectedResult": {
"changes": {},
"errors": {
"var-declarations.go": [
"var-declarations-without-types.go": [
{
"span": {
"insert": {
@ -69,17 +69,17 @@
}
},
"filePaths": [
"var-declarations.go"
"var-declarations-without-types.go"
],
"sha1": "8730812ed6347a52c20e5a5089d405a4e577fa1e",
"sha1": "7a269fb22af1a06dced019f09d4d01a57aa767d4",
"gitDir": "test/corpus/repos/go",
"sha2": "f646b63efb077bc647a5e7e8bb321c62bc16ddb2"
"sha2": "37c2b6f4b5f207e4a83175735cee44d6987a95fa"
}
,{
"testCaseDescription": "go-var-declarations-delete-insert-test",
"testCaseDescription": "go-var-declarations-without-types-delete-insert-test",
"expectedResult": {
"changes": {
"var-declarations.go": [
"var-declarations-without-types.go": [
{
"span": {
"replace": [
@ -169,17 +169,17 @@
"errors": {}
},
"filePaths": [
"var-declarations.go"
"var-declarations-without-types.go"
],
"sha1": "f646b63efb077bc647a5e7e8bb321c62bc16ddb2",
"sha1": "37c2b6f4b5f207e4a83175735cee44d6987a95fa",
"gitDir": "test/corpus/repos/go",
"sha2": "13a52b0cd36015e0a1e08a25e1563814559351d9"
"sha2": "b28e49e53965e1d7e0749bca4a59de0e0bc0c0eb"
}
,{
"testCaseDescription": "go-var-declarations-replacement-test",
"testCaseDescription": "go-var-declarations-without-types-replacement-test",
"expectedResult": {
"changes": {
"var-declarations.go": [
"var-declarations-without-types.go": [
{
"span": {
"replace": [
@ -269,18 +269,18 @@
"errors": {}
},
"filePaths": [
"var-declarations.go"
"var-declarations-without-types.go"
],
"sha1": "13a52b0cd36015e0a1e08a25e1563814559351d9",
"sha1": "b28e49e53965e1d7e0749bca4a59de0e0bc0c0eb",
"gitDir": "test/corpus/repos/go",
"sha2": "6dd9800b518fb59ac2e155c649f46b962f0dbbfd"
"sha2": "7a33ee050d39e2b89fc875ca835207ac9ac507c9"
}
,{
"testCaseDescription": "go-var-declarations-delete-replacement-test",
"testCaseDescription": "go-var-declarations-without-types-delete-replacement-test",
"expectedResult": {
"changes": {},
"errors": {
"var-declarations.go": [
"var-declarations-without-types.go": [
{
"span": {
"delete": {
@ -330,18 +330,18 @@
}
},
"filePaths": [
"var-declarations.go"
"var-declarations-without-types.go"
],
"sha1": "6dd9800b518fb59ac2e155c649f46b962f0dbbfd",
"sha1": "7a33ee050d39e2b89fc875ca835207ac9ac507c9",
"gitDir": "test/corpus/repos/go",
"sha2": "726f052d1c6b3e896dcd81a8f0d0e094950ed35c"
"sha2": "c5bda8e1780dfe0d31bf0810924bf75c4dc97542"
}
,{
"testCaseDescription": "go-var-declarations-delete-test",
"testCaseDescription": "go-var-declarations-without-types-delete-test",
"expectedResult": {
"changes": {},
"errors": {
"var-declarations.go": [
"var-declarations-without-types.go": [
{
"span": {
"delete": {
@ -361,18 +361,18 @@
}
},
"filePaths": [
"var-declarations.go"
"var-declarations-without-types.go"
],
"sha1": "726f052d1c6b3e896dcd81a8f0d0e094950ed35c",
"sha1": "c5bda8e1780dfe0d31bf0810924bf75c4dc97542",
"gitDir": "test/corpus/repos/go",
"sha2": "565e1fdc0cc5ee7d44fef03f34bc843a950f3d75"
"sha2": "efac9695062dc8978a2e095f4303b7141f77fc00"
}
,{
"testCaseDescription": "go-var-declarations-delete-rest-test",
"testCaseDescription": "go-var-declarations-without-types-delete-rest-test",
"expectedResult": {
"changes": {},
"errors": {
"var-declarations.go": [
"var-declarations-without-types.go": [
{
"span": {
"delete": {
@ -392,9 +392,9 @@
}
},
"filePaths": [
"var-declarations.go"
"var-declarations-without-types.go"
],
"sha1": "565e1fdc0cc5ee7d44fef03f34bc843a950f3d75",
"sha1": "efac9695062dc8978a2e095f4303b7141f77fc00",
"gitDir": "test/corpus/repos/go",
"sha2": "567ea1f4317f1c40f6132f429590c78238313778"
"sha2": "af1f47bc10f2a090617f350a27cc7eb40cd8499b"
}]

View File

@ -0,0 +1,634 @@
[{
"testCaseDescription": "go-variadic-function-declarations-insert-test",
"expectedResult": {
"changes": {
"variadic-function-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
22
]
}
},
"summary": "Added the 'f1' function"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
19
]
}
},
"summary": "Added the 'f2' function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
23
]
}
},
"summary": "Added the 'f3' function"
}
]
},
"errors": {}
},
"filePaths": [
"variadic-function-declarations.go"
],
"sha1": "dd25f03c65484bd3ea9e4b4193d695cd715b97d5",
"gitDir": "test/corpus/repos/go",
"sha2": "8ecb05c7f3768c095340984e2601ca6be44e6d68"
}
,{
"testCaseDescription": "go-variadic-function-declarations-replacement-insert-test",
"expectedResult": {
"changes": {
"variadic-function-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
22
]
}
},
"summary": "Added the 'g1' function"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
19
]
}
},
"summary": "Added the 'g2' function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
23
]
}
},
"summary": "Added the 'g3' function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
22
]
}
},
"summary": "Added the 'f1' function"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
19
]
}
},
"summary": "Added the 'f2' function"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
23
]
}
},
"summary": "Added the 'f3' function"
}
]
},
"errors": {}
},
"filePaths": [
"variadic-function-declarations.go"
],
"sha1": "8ecb05c7f3768c095340984e2601ca6be44e6d68",
"gitDir": "test/corpus/repos/go",
"sha2": "9b181b389a273aab14c61af1d465fc9bf0d9fe29"
}
,{
"testCaseDescription": "go-variadic-function-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"variadic-function-declarations.go": [
{
"span": {
"replace": [
{
"start": [
3,
6
],
"end": [
3,
8
]
},
{
"start": [
3,
6
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the 'g1' identifier with the 'f1' identifier in the f1 function of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
8
]
},
{
"start": [
4,
6
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the 'g2' identifier with the 'f2' identifier in the f2 function of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
8
]
},
{
"start": [
5,
6
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 'g3' identifier with the 'f3' identifier in the f3 function of the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"variadic-function-declarations.go"
],
"sha1": "9b181b389a273aab14c61af1d465fc9bf0d9fe29",
"gitDir": "test/corpus/repos/go",
"sha2": "d82ec5995d4eff5856b1f5c6fb04d14884f6367c"
}
,{
"testCaseDescription": "go-variadic-function-declarations-replacement-test",
"expectedResult": {
"changes": {
"variadic-function-declarations.go": [
{
"span": {
"replace": [
{
"start": [
3,
6
],
"end": [
3,
8
]
},
{
"start": [
3,
6
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the 'f1' identifier with the 'g1' identifier in the g1 function of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
4,
6
],
"end": [
4,
8
]
},
{
"start": [
4,
6
],
"end": [
4,
8
]
}
]
},
"summary": "Replaced the 'f2' identifier with the 'g2' identifier in the g2 function of the 'main' module statement"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
8
]
},
{
"start": [
5,
6
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 'f3' identifier with the 'g3' identifier in the g3 function of the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"variadic-function-declarations.go"
],
"sha1": "d82ec5995d4eff5856b1f5c6fb04d14884f6367c",
"gitDir": "test/corpus/repos/go",
"sha2": "a79f34f6aad6837d4ab4ddbb48c36d467268e8b1"
}
,{
"testCaseDescription": "go-variadic-function-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"variadic-function-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
22
]
}
},
"summary": "Deleted the 'g1' function"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
19
]
}
},
"summary": "Deleted the 'g2' function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
23
]
}
},
"summary": "Deleted the 'g3' function"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
22
]
}
},
"summary": "Deleted the 'f1' function"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
19
]
}
},
"summary": "Deleted the 'f2' function"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
23
]
}
},
"summary": "Deleted the 'f3' function"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
22
]
}
},
"summary": "Added the 'g1' function"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
19
]
}
},
"summary": "Added the 'g2' function"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
23
]
}
},
"summary": "Added the 'g3' function"
}
]
},
"errors": {}
},
"filePaths": [
"variadic-function-declarations.go"
],
"sha1": "a79f34f6aad6837d4ab4ddbb48c36d467268e8b1",
"gitDir": "test/corpus/repos/go",
"sha2": "7b705c5ff8762648ee7a2b0505a12858fc4fbea0"
}
,{
"testCaseDescription": "go-variadic-function-declarations-delete-test",
"expectedResult": {
"changes": {
"variadic-function-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
22
]
}
},
"summary": "Deleted the 'f1' function"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
19
]
}
},
"summary": "Deleted the 'f2' function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
23
]
}
},
"summary": "Deleted the 'f3' function"
}
]
},
"errors": {}
},
"filePaths": [
"variadic-function-declarations.go"
],
"sha1": "7b705c5ff8762648ee7a2b0505a12858fc4fbea0",
"gitDir": "test/corpus/repos/go",
"sha2": "641fa583614ccf14b176131d0777b60951fe970d"
}
,{
"testCaseDescription": "go-variadic-function-declarations-delete-rest-test",
"expectedResult": {
"changes": {
"variadic-function-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
22
]
}
},
"summary": "Deleted the 'g1' function"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
19
]
}
},
"summary": "Deleted the 'g2' function"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
23
]
}
},
"summary": "Deleted the 'g3' function"
}
]
},
"errors": {}
},
"filePaths": [
"variadic-function-declarations.go"
],
"sha1": "641fa583614ccf14b176131d0777b60951fe970d",
"gitDir": "test/corpus/repos/go",
"sha2": "fab9e0aec724df9646eee5367a1979f69fe1970f"
}]

View File

@ -6,29 +6,42 @@
"templateText": "package main\n",
"syntaxes": [
{
"syntax": "imports",
"repoFilePath": "imports",
"syntax": "single-import-declarations",
"insert": "import \"net/http\"\nimport . \"some/dsl\"\nimport alias \"some/package\"",
"testCaseFilePath": "test/corpus/diff-summaries/go/imports.json",
"replacement": "import \"foo/bar\"\nimport . \"types/dsl\"\nimport alias \"awesome/packages\""
},
{
"syntax": "int-literal",
"syntax": "grouped-import-declarations",
"insert": "import (\n\"net/http\"\n . \"some/dsl\"\n alias \"some/package\"\n)",
"replacement": "import (\n\"net/socket\"\n . \"types/dsl\"\n alias \"awesome/package\"\n)"
},
{
"syntax": "int-literals",
"insert": "const (\na = 1, b = 2, c = 3\n)",
"replacement": "const (\na = 4, b = 5, c = 6\n)"
},
{
"syntax": "assignment",
"insert": "var foo int = 42",
"replacement": "var bar string = \"hello\""
"syntax": "assignment-statements",
"insert": "a = 1\nb, c += 2, 3\nd *= 3\ne += 1",
"replacement": "x = 1\ny, c += 2, 3\nz *= 3\nh += 1"
},
{
"syntax": "call-expressions.go",
"insert": "a()",
"replacement": "b()"
"syntax": "if-statements",
"insert": "if a() {\nb()\n}\nif a := b(); c {\nd()\n}\nif a() {\nb()\n} else {\nc()\n}",
"replacement": "if x() {\nb()\n}\nif y := b(); c {\nd()\n}\nif z() {\nb()\n} else {\nc()\n}"
},
{
"syntax": "function-literal",
"syntax": "short-var-declarations",
"insert": "a, b := 1, 2",
"replacement": "x, y := 3, 4"
},
{
"syntax": "call-expressions",
"insert": "x(b, c...)\ny(b, c,)\nz(b,c...,)",
"replacement": "a(b, c...)\nb(b, c,)\nc(b,c...,)"
},
{
"syntax": "function-literals",
"insert": "const s1 = func(s string) (int, int) {\nreturn 1, 2\n}",
"replacement": "const s1 = func(b int) (string, string) {\nreturn 1, 2\n}"
},
@ -38,20 +51,50 @@
"replacement": "const one, two = 1, 2"
},
{
"syntax": "var-declarations",
"syntax": "var-declarations-without-types",
"insert": "var zero = 0",
"replacement": "var one, two = 1, 2"
},
{
"syntax": "var-declarations",
"insert": "var zero = 0",
"replacement": "var one, two = 1, 2"
"syntax": "var-declarations-with-types",
"insert": "var zero int = 0\nvar one, two uint64 = 1, 2",
"replacement": "var a int = 0\n var b, c uint64 = 1, 2"
},
{
"syntax": "var-declarations-with-no-expressions",
"insert": "var zero int\nvar one, two uint64",
"replacement": "var a int\nvar b, c uint64"
},
{
"syntax": "grouped-var-declarations",
"insert": "var (\nzero = 0\none = 1\n)",
"replacement": "var (\na = 0\nb = 1\n)"
},
{
"syntax": "switch-statements",
"insert": "switch { case x < y: f1()\ncase x < z: g()\ncase x == 4: h()\n}",
"replacement": "switch { case a < b: f1()\ncase c < d: g()\ncase e == 4: f()\n}"
},
{
"syntax": "type-switch-statements",
"insert": "switch e.(type) {\n case []Person:\n a()\n case *Dog:\n break\n}",
"replacement": "switch b.(type) {\n case []Person:\n a()\n case *Dog:\n break\n}"
},
{
"syntax": "select-statements",
"insert": "select {\n case x := <-c:\n println(x)\n case y <- c:\n println(5)\n case <-time.After(1):\n println(6)\n default:\n return\n}",
"replacement": "select {\n case a := <-c:\n println(x)\n case b <- c:\n println(5)\n case <-time.After(2):\n println(6)\n default:\n return\n}"
},
{
"syntax": "go-and-defer-statements",
"insert": "defer x.y()\ngo x.y()",
"replacement": "defer a.b()\ngo c.d()"
},
{
"syntax": "label-statements",
"insert": "{\n insert_label:\n}",
"replacement": "{\n replacement_label:\n}"
},
{
"syntax": "for-statements",
"insert": "for { case x < y: f1()\ncase x < z: g()\ncase x == 4: h()\n}",
@ -63,10 +106,14 @@
"replacement": "func fa() {}\nfunc fb(a int, b, c, d string) int {}\nfunc fc() (int, error) {}\nfunc fd() (result int, err error) {}"
},
{
"syntax": "function-declarations",
"repoFilePath": "function-declarations.go",
"insert": "func f1() {}\nfunc f2(a int, b, c, d string) int {}\nfunc f2() (int, error) {}\nfunc f2() (result int, err error) {}",
"replacement": "func fa() {}\nfunc fb(a int, b, c, d string) int {}\nfunc fc() (int, error) {}\nfunc fd() (result int, err error) {}"
"syntax": "single-line-function-declarations",
"insert": "func f1() { a() }\nfunc f2() { a(); b() }\nfunc f3() { a(); b(); }",
"replacement": "func g1() { a() }\nfunc g2() { a(); b() }\nfunc g3() { a(); b(); }"
},
{
"syntax": "variadic-function-declarations",
"insert": "func f1(a ...*int) {}\nfunc f2(...int) {}\nfunc f3(a, ...bool) {}",
"replacement": "func g1(a ...*int) {}\nfunc g2(...int) {}\nfunc g3(a, ...bool) {}"
},
{
"syntax": "method-declarations",
@ -78,16 +125,6 @@
"insert": "type a b\ntype (\n a b\n c d\n )",
"replacement": "type a' b'\ntype (\n a' b'\n c' d'\n )"
},
{
"syntax": "type-declarations",
"insert": "type a b\ntype (\n a b\n c d\n )",
"replacement": "type a' b'\ntype (\n a' b'\n c' d'\n )"
},
{
"syntax": "const-with-implicit-values",
"insert": "const (\n zero = iota\n one\n two\n )",
"replacement": "const (\n a = iota\n b\n c\n )"
},
{
"syntax": "const-with-implicit-values",
"insert": "const (\n zero = iota\n one\n two\n )",
@ -99,22 +136,22 @@
"replacement": "make(chan<- string)\nmake(chan<- string, (new - old))\nmake(chan<- string, 7, 11)\n new(map[int]int)"
},
{
"syntax": "selector expressions",
"syntax": "selector-expressions",
"insert": "a.b.c()",
"replacement": "x.y.z()"
},
{
"syntax": "indexing expressions",
"syntax": "indexing-expressions",
"insert": "a[1]\n b[:]\n c[1:]\n d[1:2]\n e[:2:3]\n f[1:2:3]",
"replacement": "z[:2]\n y[:1]\n x[1:]\n d[1:2]\n e[:2:3]\n f[1:2:3]"
},
{
"syntax": "type-assertion-expression",
"syntax": "type-assertion-expressions",
"insert": "x.(z.Person)",
"replacement": "b.(c.Dog)"
},
{
"syntax": "type-conversion-expression",
"syntax": "type-conversion-expressions",
"insert": "[]a.b(c.d)\n ([]a.b)(c.d)\n e.f(g)\n (e.f)(g)",
"replacement": "[]x.y(z.e)\n ([]f.g)(h.i)\n j.k(l)\n (m.n)(o)"
},
@ -142,6 +179,81 @@
"syntax": "string-literals",
"insert": "const (\na = \"0\"\nb = \"hello world\"\n)",
"replacement": "const (\na = \"2\"\nb = \"hi\"\n)"
},
{
"syntax": "slice-literals",
"insert": "const s1 = []string{}\nconst s2 = []string{\"hi\"}\nconst s3 = []string{\n\"hi\",\n \"hello\",\n}",
"replacement": "const s1 = []string{\"sup\"}\nconst s2 = []string{\"hello\"}\nconst s3 = []string{\n\"bar\",\n \"baz\",\n}"
},
{
"syntax": "array-with-implicit-length",
"insert": "const a1 = [...]int{1, 2, 3}",
"replacement": "const a1 = [...]int{4,5,6}"
},
{
"syntax": "map-literals",
"insert": "const s = map[string]string{\n\"hi\": \"hello\",\n\"bye\": \"goodbye\",\n}",
"replacement": "const s = map[string]int{\n\"foo\": \"bar\",\n\"baz\": \"hello\",\n}"
},
{
"syntax": "struct-literals",
"insert": "const s1 = Person{\nname: \"Frank\",\nAge: \"5 months\",\n}\nconst s2 = struct{i int;}{i: 5}\nconst s3 = time.Time{}",
"replacement": "const s1 = Dog{\nname: \"Frank\",\nAge: \"5 months\",\n}\nconst s2 = struct{i float;}{j: 6}\nconst s3 = time.Month{}"
},
{
"syntax": "send-statements",
"insert": "foo <- 5",
"replacement": "bar <- 6"
},
{
"syntax": "increment-decrement-statements",
"insert": "i++\nj--",
"replacement": "foo++\nx++"
},
{
"syntax": "qualified-types",
"insert": "type a b.c",
"replacement": "type x y.z"
},
{
"syntax": "array-types",
"insert": "type a [2+2]x",
"replacement": "type a [1+1]y"
},
{
"syntax": "slice-types",
"insert": "type a []b\ntype c [][]d",
"replacement": "type a [][]p\ntype c []y"
},
{
"syntax": "struct-types",
"insert": "type s1 struct {}\ntype s2 struct { Person }\ntype s3 struct {\nf, g int\n}\ntype s4 struct {\np.s1\n h int `json:\"h\"`\n}",
"replacement": "type t1 struct {}\ntype t2 struct { Person }\ntype t3 struct {\nf, g int\n}\ntype t4 struct {\np.s1\n h int `json:\"h\"`\n}"
},
{
"syntax": "interface-types",
"insert": "type i1 interface {}\ntype i2 interface { io.Reader }\ntype i3 interface {\ni1\nio.Reader\n SomeMethod(s string) error\n}",
"replacement": "type j1 interface {}\ntype j2 interface { io.Reader }\ntype j3 interface {\ni1\nio.Reader\n SomeMethod(s string) error\n}"
},
{
"syntax": "map-types",
"insert": "type m1 map[string]error",
"replacement": "type m1 map[int]error"
},
{
"syntax": "pointer-types",
"insert": "type (\np1 *string\np2 **p1\n)",
"replacement": "type (\np1 *int\np2 **p3\n)"
},
{
"syntax": "channel-types",
"insert": "type (\nc1 chan<- chan int\nc2 chan<- chan<- struct{}\nc3 chan<- <-chan int\n)",
"replacement": "type (\nc2 chan<- chan string\nc3 chan<- chan<- struct{}\nc4 chan<- <-chan string\n)"
},
{
"syntax": "function-types",
"insert": "type (\na func(int) int\nb func(int, string) (bool, error)\n)",
"replacement": "type (\nx func(string) string\ny func(string, int) (chan, error)\n)"
}
]
}

@ -1 +1 @@
Subproject commit da6ba76c0e36f88a7c6255a43bfccca89a6e85ea
Subproject commit ce28c084cab9c80fe18b5070d3793bd1b51f2a1c