mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
1454 lines
46 KiB
JSON
1454 lines
46 KiB
JSON
[{
|
|
"testCaseDescription": "go-select-statements-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"select-statements.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
8
|
|
],
|
|
"end": [
|
|
4,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
15
|
|
],
|
|
"end": [
|
|
4,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
5
|
|
],
|
|
"end": [
|
|
5,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'println' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
13
|
|
],
|
|
"end": [
|
|
5,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
8
|
|
],
|
|
"end": [
|
|
6,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
13
|
|
],
|
|
"end": [
|
|
6,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
5
|
|
],
|
|
"end": [
|
|
7,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'println' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
13
|
|
],
|
|
"end": [
|
|
7,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '5'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
10
|
|
],
|
|
"end": [
|
|
8,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'time' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
15
|
|
],
|
|
"end": [
|
|
8,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'After' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
21
|
|
],
|
|
"end": [
|
|
8,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
9,
|
|
5
|
|
],
|
|
"end": [
|
|
9,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'println' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
9,
|
|
13
|
|
],
|
|
"end": [
|
|
9,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '6'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
10,
|
|
3
|
|
],
|
|
"end": [
|
|
10,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'default' communication_case"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
11,
|
|
5
|
|
],
|
|
"end": [
|
|
11,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'empty' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"select-statements.go"
|
|
],
|
|
"sha1": "55c9268038cdb6e46dd211683ac12b462f9e590f",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "10ee9d2b43e7c512ee3d5465b13e689f68327003"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-select-statements-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"select-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
13,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'main' module with the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"select-statements.go"
|
|
],
|
|
"sha1": "10ee9d2b43e7c512ee3d5465b13e689f68327003",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "70eb607bd14f536752bf15298af7089aca4e9f0d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-select-statements-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"select-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
8
|
|
],
|
|
"end": [
|
|
4,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
8
|
|
],
|
|
"end": [
|
|
4,
|
|
9
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'x' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
6,
|
|
8
|
|
],
|
|
"end": [
|
|
6,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
6,
|
|
8
|
|
],
|
|
"end": [
|
|
6,
|
|
9
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'y' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
8,
|
|
21
|
|
],
|
|
"end": [
|
|
8,
|
|
22
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
8,
|
|
21
|
|
],
|
|
"end": [
|
|
8,
|
|
22
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '2' with '1'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"select-statements.go"
|
|
],
|
|
"sha1": "70eb607bd14f536752bf15298af7089aca4e9f0d",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "3b4e6d4c16e78a1938b465a7c629dcc0763cd0c9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-select-statements-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"select-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
8
|
|
],
|
|
"end": [
|
|
4,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
8
|
|
],
|
|
"end": [
|
|
4,
|
|
9
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'x' identifier with the 'a' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
6,
|
|
8
|
|
],
|
|
"end": [
|
|
6,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
6,
|
|
8
|
|
],
|
|
"end": [
|
|
6,
|
|
9
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'y' identifier with the 'b' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
8,
|
|
21
|
|
],
|
|
"end": [
|
|
8,
|
|
22
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
8,
|
|
21
|
|
],
|
|
"end": [
|
|
8,
|
|
22
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '1' with '2'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"select-statements.go"
|
|
],
|
|
"sha1": "3b4e6d4c16e78a1938b465a7c629dcc0763cd0c9",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "04382b83ecd70b1e348763a51f5b3facbb1e86be"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-select-statements-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"select-statements.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
8
|
|
],
|
|
"end": [
|
|
4,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
15
|
|
],
|
|
"end": [
|
|
4,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
5
|
|
],
|
|
"end": [
|
|
5,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'println' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
13
|
|
],
|
|
"end": [
|
|
5,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
8
|
|
],
|
|
"end": [
|
|
6,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
13
|
|
],
|
|
"end": [
|
|
6,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
5
|
|
],
|
|
"end": [
|
|
7,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'println' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
13
|
|
],
|
|
"end": [
|
|
7,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '5'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
10
|
|
],
|
|
"end": [
|
|
8,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'time' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
15
|
|
],
|
|
"end": [
|
|
8,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'After' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
21
|
|
],
|
|
"end": [
|
|
8,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
9,
|
|
5
|
|
],
|
|
"end": [
|
|
9,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'println' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
9,
|
|
13
|
|
],
|
|
"end": [
|
|
9,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '6'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
10,
|
|
3
|
|
],
|
|
"end": [
|
|
10,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'default' communication_case"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
11,
|
|
5
|
|
],
|
|
"end": [
|
|
11,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'empty' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
14,
|
|
8
|
|
],
|
|
"end": [
|
|
14,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
14,
|
|
15
|
|
],
|
|
"end": [
|
|
14,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
15,
|
|
5
|
|
],
|
|
"end": [
|
|
15,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'println' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
15,
|
|
13
|
|
],
|
|
"end": [
|
|
15,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
16,
|
|
8
|
|
],
|
|
"end": [
|
|
16,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
16,
|
|
13
|
|
],
|
|
"end": [
|
|
16,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
17,
|
|
5
|
|
],
|
|
"end": [
|
|
17,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'println' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
17,
|
|
13
|
|
],
|
|
"end": [
|
|
17,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '5'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
18,
|
|
10
|
|
],
|
|
"end": [
|
|
18,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'time' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
18,
|
|
15
|
|
],
|
|
"end": [
|
|
18,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'After' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
18,
|
|
21
|
|
],
|
|
"end": [
|
|
18,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
19,
|
|
5
|
|
],
|
|
"end": [
|
|
19,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'println' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
19,
|
|
13
|
|
],
|
|
"end": [
|
|
19,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '6'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
20,
|
|
3
|
|
],
|
|
"end": [
|
|
20,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'default' communication_case"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
21,
|
|
5
|
|
],
|
|
"end": [
|
|
21,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'empty' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
14,
|
|
8
|
|
],
|
|
"end": [
|
|
14,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
14,
|
|
15
|
|
],
|
|
"end": [
|
|
14,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
15,
|
|
5
|
|
],
|
|
"end": [
|
|
15,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'println' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
15,
|
|
13
|
|
],
|
|
"end": [
|
|
15,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
16,
|
|
8
|
|
],
|
|
"end": [
|
|
16,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
16,
|
|
13
|
|
],
|
|
"end": [
|
|
16,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
17,
|
|
5
|
|
],
|
|
"end": [
|
|
17,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'println' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
17,
|
|
13
|
|
],
|
|
"end": [
|
|
17,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '5'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
18,
|
|
10
|
|
],
|
|
"end": [
|
|
18,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'time' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
18,
|
|
15
|
|
],
|
|
"end": [
|
|
18,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'After' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
18,
|
|
21
|
|
],
|
|
"end": [
|
|
18,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
19,
|
|
5
|
|
],
|
|
"end": [
|
|
19,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'println' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
19,
|
|
13
|
|
],
|
|
"end": [
|
|
19,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '6'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
20,
|
|
3
|
|
],
|
|
"end": [
|
|
20,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'default' communication_case"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
21,
|
|
5
|
|
],
|
|
"end": [
|
|
21,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'empty' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"select-statements.go"
|
|
],
|
|
"sha1": "04382b83ecd70b1e348763a51f5b3facbb1e86be",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "034ff171e1fa56471fd187d8dbe4633da19e4204"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-select-statements-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"select-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
13,
|
|
1
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'main' module with the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"select-statements.go"
|
|
],
|
|
"sha1": "034ff171e1fa56471fd187d8dbe4633da19e4204",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "9c02793fcb2f68a293f0c4f92551c34561ec4f24"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-select-statements-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"select-statements.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
8
|
|
],
|
|
"end": [
|
|
4,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
15
|
|
],
|
|
"end": [
|
|
4,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
5
|
|
],
|
|
"end": [
|
|
5,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'println' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
13
|
|
],
|
|
"end": [
|
|
5,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
8
|
|
],
|
|
"end": [
|
|
6,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
13
|
|
],
|
|
"end": [
|
|
6,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
5
|
|
],
|
|
"end": [
|
|
7,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'println' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
13
|
|
],
|
|
"end": [
|
|
7,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '5'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
10
|
|
],
|
|
"end": [
|
|
8,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'time' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
15
|
|
],
|
|
"end": [
|
|
8,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'After' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
21
|
|
],
|
|
"end": [
|
|
8,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
9,
|
|
5
|
|
],
|
|
"end": [
|
|
9,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'println' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
9,
|
|
13
|
|
],
|
|
"end": [
|
|
9,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '6'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
10,
|
|
3
|
|
],
|
|
"end": [
|
|
10,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'default' communication_case"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
11,
|
|
5
|
|
],
|
|
"end": [
|
|
11,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'empty' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"select-statements.go"
|
|
],
|
|
"sha1": "9c02793fcb2f68a293f0c4f92551c34561ec4f24",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "52c2367740c0d2f7f66fbb1638b6bbe52b8bb586"
|
|
}]
|