1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/go/function-declarations.json
2016-11-02 15:13:54 -04:00

2969 lines
95 KiB
JSON

[{
"testCaseDescription": "go-function-declarations-insert-test",
"expectedResult": {
"changes": {
"function-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
13
]
}
},
"summary": "Added the 'f1' function"
},
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
8
]
}
},
"summary": "Added the 'f2' identifier"
},
{
"span": {
"insert": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
4,
11
],
"end": [
4,
14
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
4,
16
],
"end": [
4,
17
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
4,
19
],
"end": [
4,
20
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
4,
22
],
"end": [
4,
23
]
}
},
"summary": "Added the 'd' identifier"
},
{
"span": {
"insert": {
"start": [
4,
24
],
"end": [
4,
30
]
}
},
"summary": "Added the 'string' identifier"
},
{
"span": {
"insert": {
"start": [
4,
32
],
"end": [
4,
35
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
4,
36
],
"end": [
4,
38
]
}
},
"summary": "Added the '{}' block"
},
{
"span": {
"insert": {
"start": [
5,
6
],
"end": [
5,
8
]
}
},
"summary": "Added the 'f2' identifier"
},
{
"span": {
"insert": {
"start": [
5,
8
],
"end": [
5,
10
]
}
},
"summary": "Added the '()' arguments"
},
{
"span": {
"insert": {
"start": [
5,
12
],
"end": [
5,
15
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
5,
17
],
"end": [
5,
22
]
}
},
"summary": "Added the 'error' identifier"
},
{
"span": {
"insert": {
"start": [
5,
24
],
"end": [
5,
26
]
}
},
"summary": "Added the '{}' block"
},
{
"span": {
"insert": {
"start": [
6,
6
],
"end": [
6,
8
]
}
},
"summary": "Added the 'f2' identifier"
},
{
"span": {
"insert": {
"start": [
6,
8
],
"end": [
6,
10
]
}
},
"summary": "Added the '()' arguments"
},
{
"span": {
"insert": {
"start": [
6,
12
],
"end": [
6,
18
]
}
},
"summary": "Added the 'result' identifier"
},
{
"span": {
"insert": {
"start": [
6,
19
],
"end": [
6,
22
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
6,
24
],
"end": [
6,
27
]
}
},
"summary": "Added the 'err' identifier"
},
{
"span": {
"insert": {
"start": [
6,
28
],
"end": [
6,
33
]
}
},
"summary": "Added the 'error' identifier"
},
{
"span": {
"insert": {
"start": [
6,
35
],
"end": [
6,
37
]
}
},
"summary": "Added the '{}' block"
}
]
},
"errors": {}
},
"filePaths": [
"function-declarations.go"
],
"sha1": "602002fbeead9ddd8750c5f5f19dace772849a7d",
"gitDir": "test/corpus/repos/go",
"sha2": "9b7dbf8e02cc8c5b65e630ee0666f55150222078"
}
,{
"testCaseDescription": "go-function-declarations-replacement-insert-test",
"expectedResult": {
"changes": {
"function-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
13
]
}
},
"summary": "Added the 'fa' function"
},
{
"span": {
"insert": {
"start": [
4,
6
],
"end": [
4,
8
]
}
},
"summary": "Added the 'fb' identifier"
},
{
"span": {
"insert": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
4,
11
],
"end": [
4,
14
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
4,
16
],
"end": [
4,
17
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
4,
19
],
"end": [
4,
20
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
4,
22
],
"end": [
4,
23
]
}
},
"summary": "Added the 'd' identifier"
},
{
"span": {
"insert": {
"start": [
4,
24
],
"end": [
4,
30
]
}
},
"summary": "Added the 'string' identifier"
},
{
"span": {
"insert": {
"start": [
4,
32
],
"end": [
4,
35
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
4,
36
],
"end": [
4,
38
]
}
},
"summary": "Added the '{}' block"
},
{
"span": {
"insert": {
"start": [
5,
6
],
"end": [
5,
8
]
}
},
"summary": "Added the 'fc' identifier"
},
{
"span": {
"insert": {
"start": [
5,
8
],
"end": [
5,
10
]
}
},
"summary": "Added the '()' arguments"
},
{
"span": {
"insert": {
"start": [
5,
12
],
"end": [
5,
15
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
5,
17
],
"end": [
5,
22
]
}
},
"summary": "Added the 'error' identifier"
},
{
"span": {
"insert": {
"start": [
5,
24
],
"end": [
5,
26
]
}
},
"summary": "Added the '{}' block"
},
{
"span": {
"insert": {
"start": [
6,
6
],
"end": [
6,
8
]
}
},
"summary": "Added the 'fd' identifier"
},
{
"span": {
"insert": {
"start": [
6,
8
],
"end": [
6,
10
]
}
},
"summary": "Added the '()' arguments"
},
{
"span": {
"insert": {
"start": [
6,
12
],
"end": [
6,
18
]
}
},
"summary": "Added the 'result' identifier"
},
{
"span": {
"insert": {
"start": [
6,
19
],
"end": [
6,
22
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
6,
24
],
"end": [
6,
27
]
}
},
"summary": "Added the 'err' identifier"
},
{
"span": {
"insert": {
"start": [
6,
28
],
"end": [
6,
33
]
}
},
"summary": "Added the 'error' identifier"
},
{
"span": {
"insert": {
"start": [
6,
35
],
"end": [
6,
37
]
}
},
"summary": "Added the '{}' block"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
13
]
}
},
"summary": "Added the 'f1' function"
},
{
"span": {
"insert": {
"start": [
8,
6
],
"end": [
8,
8
]
}
},
"summary": "Added the 'f2' identifier"
},
{
"span": {
"insert": {
"start": [
8,
9
],
"end": [
8,
10
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
8,
11
],
"end": [
8,
14
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
8,
16
],
"end": [
8,
17
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
8,
19
],
"end": [
8,
20
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
8,
22
],
"end": [
8,
23
]
}
},
"summary": "Added the 'd' identifier"
},
{
"span": {
"insert": {
"start": [
8,
24
],
"end": [
8,
30
]
}
},
"summary": "Added the 'string' identifier"
},
{
"span": {
"insert": {
"start": [
8,
32
],
"end": [
8,
35
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
8,
36
],
"end": [
8,
38
]
}
},
"summary": "Added the '{}' block"
},
{
"span": {
"insert": {
"start": [
9,
6
],
"end": [
9,
8
]
}
},
"summary": "Added the 'f2' identifier"
},
{
"span": {
"insert": {
"start": [
9,
8
],
"end": [
9,
10
]
}
},
"summary": "Added the '()' arguments"
},
{
"span": {
"insert": {
"start": [
9,
12
],
"end": [
9,
15
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
9,
17
],
"end": [
9,
22
]
}
},
"summary": "Added the 'error' identifier"
},
{
"span": {
"insert": {
"start": [
9,
24
],
"end": [
9,
26
]
}
},
"summary": "Added the '{}' block"
},
{
"span": {
"insert": {
"start": [
10,
6
],
"end": [
10,
8
]
}
},
"summary": "Added the 'f2' identifier"
},
{
"span": {
"insert": {
"start": [
10,
8
],
"end": [
10,
10
]
}
},
"summary": "Added the '()' arguments"
},
{
"span": {
"insert": {
"start": [
10,
12
],
"end": [
10,
18
]
}
},
"summary": "Added the 'result' identifier"
},
{
"span": {
"insert": {
"start": [
10,
19
],
"end": [
10,
22
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
10,
24
],
"end": [
10,
27
]
}
},
"summary": "Added the 'err' identifier"
},
{
"span": {
"insert": {
"start": [
10,
28
],
"end": [
10,
33
]
}
},
"summary": "Added the 'error' identifier"
},
{
"span": {
"insert": {
"start": [
10,
35
],
"end": [
10,
37
]
}
},
"summary": "Added the '{}' block"
}
]
},
"errors": {}
},
"filePaths": [
"function-declarations.go"
],
"sha1": "9b7dbf8e02cc8c5b65e630ee0666f55150222078",
"gitDir": "test/corpus/repos/go",
"sha2": "80c976afb2b0aa9b709a7d775305d4e9141abc47"
}
,{
"testCaseDescription": "go-function-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"function-declarations.go": [
{
"span": {
"replace": [
{
"start": [
3,
6
],
"end": [
3,
8
]
},
{
"start": [
3,
6
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the 'fa' 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 'fb' identifier with the 'f2' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
8
]
},
{
"start": [
5,
6
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 'fc' identifier with the 'f2' identifier"
},
{
"span": {
"replace": [
{
"start": [
6,
6
],
"end": [
6,
8
]
},
{
"start": [
6,
6
],
"end": [
6,
8
]
}
]
},
"summary": "Replaced the 'fd' identifier with the 'f2' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"function-declarations.go"
],
"sha1": "80c976afb2b0aa9b709a7d775305d4e9141abc47",
"gitDir": "test/corpus/repos/go",
"sha2": "341d4803352a84ca661498e8f2c0c4b5eeec8b30"
}
,{
"testCaseDescription": "go-function-declarations-replacement-test",
"expectedResult": {
"changes": {
"function-declarations.go": [
{
"span": {
"replace": [
{
"start": [
3,
6
],
"end": [
3,
8
]
},
{
"start": [
3,
6
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the 'f1' identifier with the 'fa' identifier in the fa 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 'fb' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
6
],
"end": [
5,
8
]
},
{
"start": [
5,
6
],
"end": [
5,
8
]
}
]
},
"summary": "Replaced the 'f2' identifier with the 'fc' identifier"
},
{
"span": {
"replace": [
{
"start": [
6,
6
],
"end": [
6,
8
]
},
{
"start": [
6,
6
],
"end": [
6,
8
]
}
]
},
"summary": "Replaced the 'f2' identifier with the 'fd' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"function-declarations.go"
],
"sha1": "341d4803352a84ca661498e8f2c0c4b5eeec8b30",
"gitDir": "test/corpus/repos/go",
"sha2": "76f626ffcee4e82fd9c50a66b84c23413663b950"
}
,{
"testCaseDescription": "go-function-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"function-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
13
]
}
},
"summary": "Deleted the 'fa' function"
},
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
8
]
}
},
"summary": "Deleted the 'fb' identifier"
},
{
"span": {
"delete": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
4,
11
],
"end": [
4,
14
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
4,
16
],
"end": [
4,
17
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
4,
19
],
"end": [
4,
20
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
4,
22
],
"end": [
4,
23
]
}
},
"summary": "Deleted the 'd' identifier"
},
{
"span": {
"delete": {
"start": [
4,
24
],
"end": [
4,
30
]
}
},
"summary": "Deleted the 'string' identifier"
},
{
"span": {
"delete": {
"start": [
4,
32
],
"end": [
4,
35
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
4,
36
],
"end": [
4,
38
]
}
},
"summary": "Deleted the '{}' block"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
8
]
}
},
"summary": "Deleted the 'fc' identifier"
},
{
"span": {
"delete": {
"start": [
5,
8
],
"end": [
5,
10
]
}
},
"summary": "Deleted the '()' arguments"
},
{
"span": {
"delete": {
"start": [
5,
12
],
"end": [
5,
15
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
5,
17
],
"end": [
5,
22
]
}
},
"summary": "Deleted the 'error' identifier"
},
{
"span": {
"delete": {
"start": [
5,
24
],
"end": [
5,
26
]
}
},
"summary": "Deleted the '{}' block"
},
{
"span": {
"delete": {
"start": [
6,
6
],
"end": [
6,
8
]
}
},
"summary": "Deleted the 'fd' identifier"
},
{
"span": {
"delete": {
"start": [
6,
8
],
"end": [
6,
10
]
}
},
"summary": "Deleted the '()' arguments"
},
{
"span": {
"delete": {
"start": [
6,
12
],
"end": [
6,
18
]
}
},
"summary": "Deleted the 'result' identifier"
},
{
"span": {
"delete": {
"start": [
6,
19
],
"end": [
6,
22
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
6,
24
],
"end": [
6,
27
]
}
},
"summary": "Deleted the 'err' identifier"
},
{
"span": {
"delete": {
"start": [
6,
28
],
"end": [
6,
33
]
}
},
"summary": "Deleted the 'error' identifier"
},
{
"span": {
"delete": {
"start": [
6,
35
],
"end": [
6,
37
]
}
},
"summary": "Deleted the '{}' block"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
13
]
}
},
"summary": "Deleted the 'f1' function"
},
{
"span": {
"delete": {
"start": [
8,
6
],
"end": [
8,
8
]
}
},
"summary": "Deleted the 'f2' identifier"
},
{
"span": {
"delete": {
"start": [
8,
9
],
"end": [
8,
10
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
8,
11
],
"end": [
8,
14
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
8,
16
],
"end": [
8,
17
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
8,
19
],
"end": [
8,
20
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
8,
22
],
"end": [
8,
23
]
}
},
"summary": "Deleted the 'd' identifier"
},
{
"span": {
"delete": {
"start": [
8,
24
],
"end": [
8,
30
]
}
},
"summary": "Deleted the 'string' identifier"
},
{
"span": {
"delete": {
"start": [
8,
32
],
"end": [
8,
35
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
8,
36
],
"end": [
8,
38
]
}
},
"summary": "Deleted the '{}' block"
},
{
"span": {
"delete": {
"start": [
9,
6
],
"end": [
9,
8
]
}
},
"summary": "Deleted the 'f2' identifier"
},
{
"span": {
"delete": {
"start": [
9,
8
],
"end": [
9,
10
]
}
},
"summary": "Deleted the '()' arguments"
},
{
"span": {
"delete": {
"start": [
9,
12
],
"end": [
9,
15
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
9,
17
],
"end": [
9,
22
]
}
},
"summary": "Deleted the 'error' identifier"
},
{
"span": {
"delete": {
"start": [
9,
24
],
"end": [
9,
26
]
}
},
"summary": "Deleted the '{}' block"
},
{
"span": {
"delete": {
"start": [
10,
6
],
"end": [
10,
8
]
}
},
"summary": "Deleted the 'f2' identifier"
},
{
"span": {
"delete": {
"start": [
10,
8
],
"end": [
10,
10
]
}
},
"summary": "Deleted the '()' arguments"
},
{
"span": {
"delete": {
"start": [
10,
12
],
"end": [
10,
18
]
}
},
"summary": "Deleted the 'result' identifier"
},
{
"span": {
"delete": {
"start": [
10,
19
],
"end": [
10,
22
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
10,
24
],
"end": [
10,
27
]
}
},
"summary": "Deleted the 'err' identifier"
},
{
"span": {
"delete": {
"start": [
10,
28
],
"end": [
10,
33
]
}
},
"summary": "Deleted the 'error' identifier"
},
{
"span": {
"delete": {
"start": [
10,
35
],
"end": [
10,
37
]
}
},
"summary": "Deleted the '{}' block"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
13
]
}
},
"summary": "Added the 'fa' function"
},
{
"span": {
"insert": {
"start": [
8,
6
],
"end": [
8,
8
]
}
},
"summary": "Added the 'fb' identifier"
},
{
"span": {
"insert": {
"start": [
8,
9
],
"end": [
8,
10
]
}
},
"summary": "Added the 'a' identifier"
},
{
"span": {
"insert": {
"start": [
8,
11
],
"end": [
8,
14
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
8,
16
],
"end": [
8,
17
]
}
},
"summary": "Added the 'b' identifier"
},
{
"span": {
"insert": {
"start": [
8,
19
],
"end": [
8,
20
]
}
},
"summary": "Added the 'c' identifier"
},
{
"span": {
"insert": {
"start": [
8,
22
],
"end": [
8,
23
]
}
},
"summary": "Added the 'd' identifier"
},
{
"span": {
"insert": {
"start": [
8,
24
],
"end": [
8,
30
]
}
},
"summary": "Added the 'string' identifier"
},
{
"span": {
"insert": {
"start": [
8,
32
],
"end": [
8,
35
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
8,
36
],
"end": [
8,
38
]
}
},
"summary": "Added the '{}' block"
},
{
"span": {
"insert": {
"start": [
9,
6
],
"end": [
9,
8
]
}
},
"summary": "Added the 'fc' identifier"
},
{
"span": {
"insert": {
"start": [
9,
8
],
"end": [
9,
10
]
}
},
"summary": "Added the '()' arguments"
},
{
"span": {
"insert": {
"start": [
9,
12
],
"end": [
9,
15
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
9,
17
],
"end": [
9,
22
]
}
},
"summary": "Added the 'error' identifier"
},
{
"span": {
"insert": {
"start": [
9,
24
],
"end": [
9,
26
]
}
},
"summary": "Added the '{}' block"
},
{
"span": {
"insert": {
"start": [
10,
6
],
"end": [
10,
8
]
}
},
"summary": "Added the 'fd' identifier"
},
{
"span": {
"insert": {
"start": [
10,
8
],
"end": [
10,
10
]
}
},
"summary": "Added the '()' arguments"
},
{
"span": {
"insert": {
"start": [
10,
12
],
"end": [
10,
18
]
}
},
"summary": "Added the 'result' identifier"
},
{
"span": {
"insert": {
"start": [
10,
19
],
"end": [
10,
22
]
}
},
"summary": "Added the 'int' identifier"
},
{
"span": {
"insert": {
"start": [
10,
24
],
"end": [
10,
27
]
}
},
"summary": "Added the 'err' identifier"
},
{
"span": {
"insert": {
"start": [
10,
28
],
"end": [
10,
33
]
}
},
"summary": "Added the 'error' identifier"
},
{
"span": {
"insert": {
"start": [
10,
35
],
"end": [
10,
37
]
}
},
"summary": "Added the '{}' block"
}
]
},
"errors": {}
},
"filePaths": [
"function-declarations.go"
],
"sha1": "76f626ffcee4e82fd9c50a66b84c23413663b950",
"gitDir": "test/corpus/repos/go",
"sha2": "23bdefa46257cd73e0069e10054481378f49d77a"
}
,{
"testCaseDescription": "go-function-declarations-delete-test",
"expectedResult": {
"changes": {
"function-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
13
]
}
},
"summary": "Deleted the 'f1' function"
},
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
8
]
}
},
"summary": "Deleted the 'f2' identifier"
},
{
"span": {
"delete": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
4,
11
],
"end": [
4,
14
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
4,
16
],
"end": [
4,
17
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
4,
19
],
"end": [
4,
20
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
4,
22
],
"end": [
4,
23
]
}
},
"summary": "Deleted the 'd' identifier"
},
{
"span": {
"delete": {
"start": [
4,
24
],
"end": [
4,
30
]
}
},
"summary": "Deleted the 'string' identifier"
},
{
"span": {
"delete": {
"start": [
4,
32
],
"end": [
4,
35
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
4,
36
],
"end": [
4,
38
]
}
},
"summary": "Deleted the '{}' block"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
8
]
}
},
"summary": "Deleted the 'f2' identifier"
},
{
"span": {
"delete": {
"start": [
5,
8
],
"end": [
5,
10
]
}
},
"summary": "Deleted the '()' arguments"
},
{
"span": {
"delete": {
"start": [
5,
12
],
"end": [
5,
15
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
5,
17
],
"end": [
5,
22
]
}
},
"summary": "Deleted the 'error' identifier"
},
{
"span": {
"delete": {
"start": [
5,
24
],
"end": [
5,
26
]
}
},
"summary": "Deleted the '{}' block"
},
{
"span": {
"delete": {
"start": [
6,
6
],
"end": [
6,
8
]
}
},
"summary": "Deleted the 'f2' identifier"
},
{
"span": {
"delete": {
"start": [
6,
8
],
"end": [
6,
10
]
}
},
"summary": "Deleted the '()' arguments"
},
{
"span": {
"delete": {
"start": [
6,
12
],
"end": [
6,
18
]
}
},
"summary": "Deleted the 'result' identifier"
},
{
"span": {
"delete": {
"start": [
6,
19
],
"end": [
6,
22
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
6,
24
],
"end": [
6,
27
]
}
},
"summary": "Deleted the 'err' identifier"
},
{
"span": {
"delete": {
"start": [
6,
28
],
"end": [
6,
33
]
}
},
"summary": "Deleted the 'error' identifier"
},
{
"span": {
"delete": {
"start": [
6,
35
],
"end": [
6,
37
]
}
},
"summary": "Deleted the '{}' block"
}
]
},
"errors": {}
},
"filePaths": [
"function-declarations.go"
],
"sha1": "23bdefa46257cd73e0069e10054481378f49d77a",
"gitDir": "test/corpus/repos/go",
"sha2": "3b18362b5a0f47c7716648c9e2b4ddfa891d41ca"
}
,{
"testCaseDescription": "go-function-declarations-delete-rest-test",
"expectedResult": {
"changes": {
"function-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
13
]
}
},
"summary": "Deleted the 'fa' function"
},
{
"span": {
"delete": {
"start": [
4,
6
],
"end": [
4,
8
]
}
},
"summary": "Deleted the 'fb' identifier"
},
{
"span": {
"delete": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Deleted the 'a' identifier"
},
{
"span": {
"delete": {
"start": [
4,
11
],
"end": [
4,
14
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
4,
16
],
"end": [
4,
17
]
}
},
"summary": "Deleted the 'b' identifier"
},
{
"span": {
"delete": {
"start": [
4,
19
],
"end": [
4,
20
]
}
},
"summary": "Deleted the 'c' identifier"
},
{
"span": {
"delete": {
"start": [
4,
22
],
"end": [
4,
23
]
}
},
"summary": "Deleted the 'd' identifier"
},
{
"span": {
"delete": {
"start": [
4,
24
],
"end": [
4,
30
]
}
},
"summary": "Deleted the 'string' identifier"
},
{
"span": {
"delete": {
"start": [
4,
32
],
"end": [
4,
35
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
4,
36
],
"end": [
4,
38
]
}
},
"summary": "Deleted the '{}' block"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
8
]
}
},
"summary": "Deleted the 'fc' identifier"
},
{
"span": {
"delete": {
"start": [
5,
8
],
"end": [
5,
10
]
}
},
"summary": "Deleted the '()' arguments"
},
{
"span": {
"delete": {
"start": [
5,
12
],
"end": [
5,
15
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
5,
17
],
"end": [
5,
22
]
}
},
"summary": "Deleted the 'error' identifier"
},
{
"span": {
"delete": {
"start": [
5,
24
],
"end": [
5,
26
]
}
},
"summary": "Deleted the '{}' block"
},
{
"span": {
"delete": {
"start": [
6,
6
],
"end": [
6,
8
]
}
},
"summary": "Deleted the 'fd' identifier"
},
{
"span": {
"delete": {
"start": [
6,
8
],
"end": [
6,
10
]
}
},
"summary": "Deleted the '()' arguments"
},
{
"span": {
"delete": {
"start": [
6,
12
],
"end": [
6,
18
]
}
},
"summary": "Deleted the 'result' identifier"
},
{
"span": {
"delete": {
"start": [
6,
19
],
"end": [
6,
22
]
}
},
"summary": "Deleted the 'int' identifier"
},
{
"span": {
"delete": {
"start": [
6,
24
],
"end": [
6,
27
]
}
},
"summary": "Deleted the 'err' identifier"
},
{
"span": {
"delete": {
"start": [
6,
28
],
"end": [
6,
33
]
}
},
"summary": "Deleted the 'error' identifier"
},
{
"span": {
"delete": {
"start": [
6,
35
],
"end": [
6,
37
]
}
},
"summary": "Deleted the '{}' block"
}
]
},
"errors": {}
},
"filePaths": [
"function-declarations.go"
],
"sha1": "3b18362b5a0f47c7716648c9e2b4ddfa891d41ca",
"gitDir": "test/corpus/repos/go",
"sha2": "c62fd0c3f6a911988a043877a6a266a87c8bda85"
}]