2016-11-02 17:50:05 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "go-method-declarations-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"method-declarations.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'self' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
18
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'Person' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
20
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
26
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'Equals' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
27
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
32
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'other' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
33
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'Person' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
41
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'bool' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
46
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '{}' block"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"method-declarations.go"
|
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "cbfe90e40b3f1a5f8f1a76f1e2b9dbebe28783ee",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "14de9ec3de65ef9f8bc0e5fb6630ff5ac21eaab4"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-method-declarations-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"method-declarations.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'self' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'Num' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
17
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'Equals' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
24
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
29
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'other' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
30
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
33
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'Num' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
35
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'bool' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
40
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '{}' block"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'self' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
18
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'Person' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
20
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
26
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'Equals' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
27
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
32
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'other' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
33
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'Person' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
41
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'bool' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
46
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '{}' block"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"method-declarations.go"
|
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "14de9ec3de65ef9f8bc0e5fb6630ff5ac21eaab4",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "5054e15fa1244744a8a8c7d13ab985ef52ec27d7"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-method-declarations-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"method-declarations.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
18
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'Num' identifier with the 'Person' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
30
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
33
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
33
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'Num' identifier with the 'Person' identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"method-declarations.go"
|
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "5054e15fa1244744a8a8c7d13ab985ef52ec27d7",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "e87f60598a56c038968a79ac963c75c931619bce"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-method-declarations-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"method-declarations.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
18
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'Person' identifier with the 'Num' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
33
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
30
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
33
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'Person' identifier with the 'Num' identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"method-declarations.go"
|
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "e87f60598a56c038968a79ac963c75c931619bce",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "6068bf44242bbbf53c3e25bbe807eb07c69c4e19"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-method-declarations-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"method-declarations.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'self' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'Num' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
17
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'Equals' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
24
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
29
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'other' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
30
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
33
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'Num' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
35
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'bool' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
40
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '{}' block"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'self' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
18
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'Person' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
20
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
26
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'Equals' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
27
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
32
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'other' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
33
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'Person' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
41
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'bool' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
46
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '{}' block"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'self' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'Num' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
17
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'Equals' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
24
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
29
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'other' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
30
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
33
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'Num' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
35
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'bool' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
40
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '{}' block"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"method-declarations.go"
|
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "6068bf44242bbbf53c3e25bbe807eb07c69c4e19",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "57eb6787a6123a5d6fee4468ad409e164de5997c"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-method-declarations-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"method-declarations.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'self' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
18
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'Person' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
20
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
26
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'Equals' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
27
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
32
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'other' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
33
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'Person' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
41
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'bool' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
46
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '{}' block"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"method-declarations.go"
|
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "57eb6787a6123a5d6fee4468ad409e164de5997c",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "01f7c70d4627963d529697f038404d69754c7b60"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-method-declarations-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"method-declarations.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'self' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
12
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'Num' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
17
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'Equals' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
24
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
29
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'other' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
30
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
33
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'Num' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
35
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'bool' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
40
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '{}' block"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"method-declarations.go"
|
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "01f7c70d4627963d529697f038404d69754c7b60",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "262ad8491999ea66eb0f840c0b00851ebce2af55"
|
2016-11-02 17:50:05 +03:00
|
|
|
}]
|