2016-11-02 05:05:43 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "go-for-statements-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-statements.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 22:25:50 +03:00
|
|
|
3,
|
|
|
|
1
|
2016-11-02 05:05:43 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 22:25:50 +03:00
|
|
|
"summary": "Replaced the 'main' module with the 'main' module"
|
2016-11-02 05:05:43 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-statements.go"
|
|
|
|
],
|
2016-11-02 23:46:17 +03:00
|
|
|
"sha1": "0aba783e4e7831a87b8928b77d742f2324e5c49c",
|
2016-11-02 05:05:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-02 23:46:17 +03:00
|
|
|
"sha2": "71d8fb8231ffba99e3026ef8bb97eff6c77f0277"
|
2016-11-02 05:05:43 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-for-statements-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-statements.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:25:50 +03:00
|
|
|
"summary": "Added the 'main' module"
|
2016-11-02 05:05:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
20
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
22
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
15,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
15,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'break' break_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
19,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
19,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
19,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'h()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
21,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
21,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
21,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
21,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
21,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
21,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
22,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
22,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
22,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
22,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
22,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
22,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
23,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
23,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
23,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
23,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
23,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
23,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'h()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:25:50 +03:00
|
|
|
"summary": "Deleted the 'main' module"
|
2016-11-02 05:05:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'h()' function call"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-statements.go"
|
|
|
|
],
|
2016-11-02 23:46:17 +03:00
|
|
|
"sha1": "71d8fb8231ffba99e3026ef8bb97eff6c77f0277",
|
2016-11-02 05:05:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-02 23:46:17 +03:00
|
|
|
"sha2": "549fbb308eb2f4683082702844b2911330312361"
|
2016-11-02 05:05:43 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-for-statements-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-statements.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:25:50 +03:00
|
|
|
"summary": "Added the 'main' module"
|
2016-11-02 05:05:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'h()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '}\nfor {' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
9,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
9,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
9,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'h()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '}\nfor {' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
11,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
11,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
11,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
13,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
13,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
13,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
13,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
13,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
13,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'h()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:25:50 +03:00
|
|
|
"summary": "Deleted the 'main' module"
|
2016-11-02 05:05:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
20
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
22
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
15,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
15,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'break' break_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
19,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
19,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
19,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'h()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
21,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
21,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
21,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
21,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
21,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
21,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
22,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
22,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
22,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
22,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
22,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
22,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
23,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
23,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
23,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
23,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
23,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
23,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'h()' function call"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-statements.go"
|
|
|
|
],
|
2016-11-02 23:46:17 +03:00
|
|
|
"sha1": "549fbb308eb2f4683082702844b2911330312361",
|
2016-11-02 05:05:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-02 23:46:17 +03:00
|
|
|
"sha2": "a2ded5d719c5ccaba14fd69dc02941a5934ed7e8"
|
2016-11-02 05:05:43 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-for-statements-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-statements.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:25:50 +03:00
|
|
|
"summary": "Added the 'main' module"
|
2016-11-02 05:05:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
20
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
22
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
15,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
15,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'break' break_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
19,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
19,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
19,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'h()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
21,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
21,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
21,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
21,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
21,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
21,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
22,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
22,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
22,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
22,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
22,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
22,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
23,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
23,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
23,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
23,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
23,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
23,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'h()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:25:50 +03:00
|
|
|
"summary": "Deleted the 'main' module"
|
2016-11-02 05:05:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'h()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '}\nfor {' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
9,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
9,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
9,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'h()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '}\nfor {' ERROR"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
11,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
11,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
11,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
11,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
13,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
13,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
13,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
13,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
13,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
13,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'h()' function call"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-statements.go"
|
|
|
|
],
|
2016-11-02 23:46:17 +03:00
|
|
|
"sha1": "a2ded5d719c5ccaba14fd69dc02941a5934ed7e8",
|
2016-11-02 05:05:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-02 23:46:17 +03:00
|
|
|
"sha2": "2495da8d585c5f4b67dcdd8c2d2b32696849bfdb"
|
2016-11-02 05:05:43 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-for-statements-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-statements.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:25:50 +03:00
|
|
|
"summary": "Added the 'main' module"
|
2016-11-02 05:05:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'h()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
2016-11-02 05:05:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
12
|
2016-11-02 05:05:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'main()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
21
|
2016-11-02 05:05:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
24
|
2016-11-02 05:05:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
30
|
2016-11-02 05:05:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
34
|
2016-11-02 05:05:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'loop' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:46:17 +03:00
|
|
|
"summary": "Added the 'label_statement' variable"
|
2016-11-02 05:05:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'i' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
23
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
24
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '5'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
26
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
27
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'i' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
9,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
10,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'loop' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'loop2' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'i' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
18
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '10'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
22
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'i' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
15,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
15,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'loop2' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the ';;' for_clause"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
22
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'continue' continue_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
20
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
22
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
19,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'break' break_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:25:50 +03:00
|
|
|
"summary": "Deleted the 'main' module"
|
2016-11-02 05:05:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
20
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
22
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
15,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
15,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'break' break_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
19,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
19,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
19,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'h()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
21,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
21,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
21,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
21,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
21,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
21,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
22,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
22,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
22,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
22,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
22,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
22,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
23,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
23,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
23,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
23,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
23,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
23,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'h()' function call"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-statements.go"
|
|
|
|
],
|
2016-11-02 23:46:17 +03:00
|
|
|
"sha1": "2495da8d585c5f4b67dcdd8c2d2b32696849bfdb",
|
2016-11-02 05:05:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-02 23:46:17 +03:00
|
|
|
"sha2": "45d882c725f4957f7b445a4e85ac9f4c075ce707"
|
2016-11-02 05:05:43 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-for-statements-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-statements.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
1
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:25:50 +03:00
|
|
|
"summary": "Added the 'main' module"
|
2016-11-02 05:05:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
20
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
22
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
15,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
15,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'break' break_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 22:25:50 +03:00
|
|
|
"summary": "Deleted the 'main' module"
|
2016-11-02 05:05:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'f1()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'z' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'g()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
11
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '4'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'h()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
2016-11-02 05:05:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
12
|
2016-11-02 05:05:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'main()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
21
|
2016-11-02 05:05:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
24
|
2016-11-02 05:05:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
30
|
2016-11-02 05:05:43 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
34
|
2016-11-02 05:05:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'loop' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 23:46:17 +03:00
|
|
|
"summary": "Deleted the 'label_statement' variable"
|
2016-11-02 05:05:43 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'i' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
23
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
24
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '5'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
26
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
27
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'i' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
9,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
9,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
10,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
10,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'loop' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'loop2' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'i' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
18
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '10'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
12,
|
|
|
|
22
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
12,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'i' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
14,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
15,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
15,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'loop2' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the ';;' for_clause"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a()' function call"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
22
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'continue' continue_statement"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
16
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
17
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
20
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
18,
|
|
|
|
22
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
18,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
19,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
19,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'break' break_statement"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-statements.go"
|
|
|
|
],
|
2016-11-02 23:46:17 +03:00
|
|
|
"sha1": "45d882c725f4957f7b445a4e85ac9f4c075ce707",
|
2016-11-02 05:05:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-02 23:46:17 +03:00
|
|
|
"sha2": "d65051ae8f46b2d55ab7f3bf7fe4a0fc70e51f06"
|
2016-11-02 05:05:43 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-for-statements-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-statements.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
1
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 22:25:50 +03:00
|
|
|
3,
|
|
|
|
1
|
2016-11-02 05:05:43 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 22:25:50 +03:00
|
|
|
"summary": "Replaced the 'main' module with the 'main' module"
|
2016-11-02 05:05:43 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-statements.go"
|
|
|
|
],
|
2016-11-02 23:46:17 +03:00
|
|
|
"sha1": "d65051ae8f46b2d55ab7f3bf7fe4a0fc70e51f06",
|
2016-11-02 05:05:43 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-02 23:46:17 +03:00
|
|
|
"sha2": "feff38a2a117701fa10a0b1e3347b2f69df6dd95"
|
2016-11-02 05:05:43 +03:00
|
|
|
}]
|