2016-11-02 17:50:05 +03:00
|
|
|
[{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-call-expressions-insert-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 22:25:50 +03:00
|
|
|
3,
|
|
|
|
1
|
2016-11-02 17:50:05 +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 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "b553e5d63655ec620ade647a1f3551dfa59d2277",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "b012b29236710a735f6e72762337573a759aa242"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-call-expressions-replacement-insert-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'a' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'x' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
6,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
6,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
2016-11-02 21:37:30 +03:00
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'y' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
7,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
2016-11-02 21:37:30 +03:00
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'z' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"call-expressions.go"
|
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "b012b29236710a735f6e72762337573a759aa242",
|
2016-11-02 21:37:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "af9d11cc628384dfb084adb962cb7362967a11eb"
|
2016-11-02 21:37:30 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-call-expressions-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"call-expressions.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'b' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'y' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'z' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'a' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "af9d11cc628384dfb084adb962cb7362967a11eb",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "da43cd5263fadfb3a7721efadd94e2ec8eb6a565"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-call-expressions-replacement-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'a' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"insert": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'x' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'b' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
2016-11-02 17:50:05 +03:00
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
2016-11-02 17:50:05 +03:00
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
2016-11-02 17:50:05 +03:00
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'z' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"call-expressions.go"
|
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "da43cd5263fadfb3a7721efadd94e2ec8eb6a565",
|
2016-11-02 21:37:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "9078afc8ef67ea3b698abcd11b713fce7d554297"
|
2016-11-02 21:37:30 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-call-expressions-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"call-expressions.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'b' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'x' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
2016-11-02 17:50:05 +03:00
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
2016-11-02 17:50:05 +03:00
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'y' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
|
|
|
7,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
|
|
|
7,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
7,
|
2016-11-02 21:37:30 +03:00
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'z' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"delete": {
|
2016-11-02 17:50:05 +03:00
|
|
|
"start": [
|
|
|
|
8,
|
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'a' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "9078afc8ef67ea3b698abcd11b713fce7d554297",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "7e0a6ba44779783d4e780ffb49daba429f924ef7"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-call-expressions-delete-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'x' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'b' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'y' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'b' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'z' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'b' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "7e0a6ba44779783d4e780ffb49daba429f924ef7",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "688bfe8b2eef8f7b3bd03e0bc622274ba2789c27"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-call-expressions-delete-rest-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go": [
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 22:25:50 +03:00
|
|
|
3,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 22:25:50 +03:00
|
|
|
"summary": "Replaced the 'main' module with the 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"call-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha1": "688bfe8b2eef8f7b3bd03e0bc622274ba2789c27",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-10 23:36:44 +03:00
|
|
|
"sha2": "feb6123e4d38848977a42544b3bae6334aecf1e0"
|
2016-11-02 17:50:05 +03:00
|
|
|
}]
|