mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
2969 lines
95 KiB
JSON
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": "ee3604412aa827a1c78cb800a5ecadba671fa836",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "4ed5671ca18b21a7b1a742c2e9c4481bd5a040b1"
|
|
}
|
|
,{
|
|
"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": "4ed5671ca18b21a7b1a742c2e9c4481bd5a040b1",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "71f916cd863a16c9d1e5029744dcd093ec847dbd"
|
|
}
|
|
,{
|
|
"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"
|
|
},
|
|
{
|
|
"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": "71f916cd863a16c9d1e5029744dcd093ec847dbd",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "83014b1ffb2b66d02dc00c536261b6b304165700"
|
|
}
|
|
,{
|
|
"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"
|
|
},
|
|
{
|
|
"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": "83014b1ffb2b66d02dc00c536261b6b304165700",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "3e9db3ee22eaf4222ca09576361469373e4334fa"
|
|
}
|
|
,{
|
|
"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": "3e9db3ee22eaf4222ca09576361469373e4334fa",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "547d2e5c21f831389242318bc48d577fec3ce7f4"
|
|
}
|
|
,{
|
|
"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": "547d2e5c21f831389242318bc48d577fec3ce7f4",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "88576882baef1c5a2dafc4cc2de642afd259d49f"
|
|
}
|
|
,{
|
|
"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": "88576882baef1c5a2dafc4cc2de642afd259d49f",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "ce1a0ebe3dcd246f8918c95248d00d3847587c2c"
|
|
}]
|