2016-11-02 17:50:05 +03:00
|
|
|
[{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-indexing-expressions-insert-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-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
|
|
|
"indexing-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-03 01:46:48 +03:00
|
|
|
"sha1": "b9862dee8c71173f167b0eeeb31df710b7a10fb8",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-03 01:46:48 +03:00
|
|
|
"sha2": "5f1a6f8aa0cbdb80c4107df6dcae18a9ca14d37c"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-indexing-expressions-replacement-insert-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-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 'z' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
2016-11-02 21:37:30 +03:00
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '2'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added 'y' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '1'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added 'x' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '1'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added 'd' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '1'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
6,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added '2'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
3
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added 'e' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '2'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
8
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '3'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added 'f' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
5
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added '1'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
8,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
2016-11-02 21:37:30 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '2'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
2016-11-02 17:50:05 +03:00
|
|
|
8
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
2016-11-02 17:50:05 +03:00
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '3'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
9,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
9,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added 'a' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
9,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
9,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '1'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
10,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
10,
|
|
|
|
3
|
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
|
|
|
11,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
11,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
11,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
11,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '1'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
12,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
12,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added 'd' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
12,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
12,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '1'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
12,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
12,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '2'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
13,
|
2016-11-02 17:50:05 +03:00
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
13,
|
2016-11-02 17:50:05 +03:00
|
|
|
3
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added 'e' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
13,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
13,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '2'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
13,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
13,
|
|
|
|
8
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '3'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
14,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
14,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added 'f' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
14,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
14,
|
|
|
|
5
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added '1'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
14,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
2016-11-02 21:37:30 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
14,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '2'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
14,
|
2016-11-02 17:50:05 +03:00
|
|
|
8
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
14,
|
2016-11-02 17:50:05 +03:00
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '3'"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-03 01:46:48 +03:00
|
|
|
"sha1": "5f1a6f8aa0cbdb80c4107df6dcae18a9ca14d37c",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-03 01:46:48 +03:00
|
|
|
"sha2": "3d5e888aabfce72a8bc48231ec729e7f0a1c017f"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-indexing-expressions-delete-insert-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-expressions.go": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
2
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added 'a' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
3,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
3,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added '1'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
4,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
|
|
|
3
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'b' identifier"
|
|
|
|
},
|
2016-11-02 17:50:05 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"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
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
2016-11-02 21:37:30 +03:00
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Replaced the 'z' identifier with the 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
5,
|
|
|
|
4
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
2016-11-02 17:50:05 +03:00
|
|
|
5
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Replaced '2' with '1'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '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
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '1'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted 'x' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '1'"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"indexing-expressions.go"
|
|
|
|
],
|
2016-11-03 01:46:48 +03:00
|
|
|
"sha1": "3d5e888aabfce72a8bc48231ec729e7f0a1c017f",
|
2016-11-02 21:37:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-03 01:46:48 +03:00
|
|
|
"sha2": "a927483bb88c1d207eb1de9a1d3f4fe3ed69108d"
|
2016-11-02 21:37:30 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-indexing-expressions-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"indexing-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": [
|
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": "Added 'z' 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
|
|
|
3,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '2'"
|
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
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
2016-11-02 21:37:30 +03:00
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added 'y' 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
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
4,
|
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 '1'"
|
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,
|
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
3
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added 'x' 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,
|
|
|
|
4
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
5,
|
|
|
|
5
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '1'"
|
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 'a' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
2016-11-02 17:50:05 +03:00
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
2016-11-02 17:50:05 +03:00
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '1'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
3
|
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,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '1'"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"indexing-expressions.go"
|
|
|
|
],
|
2016-11-03 01:46:48 +03:00
|
|
|
"sha1": "a927483bb88c1d207eb1de9a1d3f4fe3ed69108d",
|
2016-11-02 21:37:30 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-03 01:46:48 +03:00
|
|
|
"sha2": "e984e42a8f93e7f074561b15dd32e60866866b8a"
|
2016-11-02 21:37:30 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "go-indexing-expressions-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"indexing-expressions.go": [
|
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 'z' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
3,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '2'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '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
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '1'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted 'x' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '1'"
|
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
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
2016-11-02 17:50:05 +03:00
|
|
|
3
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted 'd' 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
|
|
|
4
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
2016-11-02 17:50:05 +03:00
|
|
|
5
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '1'"
|
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
|
|
|
6
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
2016-11-02 17:50:05 +03:00
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '2'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted 'e' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
5
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '2'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
8
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '3'"
|
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,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted 'f' 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,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '1'"
|
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,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '2'"
|
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,
|
|
|
|
8
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
9
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '3'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
9,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
9,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added 'z' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
9,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
9,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '2'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
10,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
10,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added 'y' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
10,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
10,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '1'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
11,
|
2016-11-02 17:50:05 +03:00
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
11,
|
2016-11-02 17:50:05 +03:00
|
|
|
3
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added 'x' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
11,
|
2016-11-02 17:50:05 +03:00
|
|
|
4
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
11,
|
2016-11-02 17:50:05 +03:00
|
|
|
5
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Added '1'"
|
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
|
|
|
15,
|
|
|
|
1
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
15,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted 'a' 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
|
|
|
15,
|
2016-11-02 17:50:05 +03:00
|
|
|
3
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
15,
|
2016-11-02 17:50:05 +03:00
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '1'"
|
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
|
|
|
16,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
16,
|
|
|
|
3
|
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": [
|
2016-11-02 21:37:30 +03:00
|
|
|
17,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
17,
|
|
|
|
3
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted 'c' identifier"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
17,
|
|
|
|
4
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
17,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '1'"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-03 01:46:48 +03:00
|
|
|
"sha1": "e984e42a8f93e7f074561b15dd32e60866866b8a",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-03 01:46:48 +03:00
|
|
|
"sha2": "4ea5afa1e1ab9d35d54c6e9f6e48e4dccd122c54"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-indexing-expressions-delete-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-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 'a' 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
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '1'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
4,
|
|
|
|
3
|
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,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted 'c' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
5,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '1'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted 'd' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
6,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '1'"
|
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 '2'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
2
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
2016-11-02 17:50:05 +03:00
|
|
|
3
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted 'e' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
5
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
6
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '2'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
7,
|
|
|
|
8
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '3'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
2
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
3
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted 'f' identifier"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
4
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
|
|
|
5
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted '1'"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
8,
|
2016-11-02 17:50:05 +03:00
|
|
|
6
|
2016-11-02 21:37:30 +03:00
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
8,
|
|
|
|
7
|
2016-11-02 17:50:05 +03:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '2'"
|
2016-11-02 17:50:05 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
2016-11-02 17:50:05 +03:00
|
|
|
8
|
|
|
|
],
|
|
|
|
"end": [
|
2016-11-02 21:37:30 +03:00
|
|
|
8,
|
2016-11-02 17:50:05 +03:00
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-02 21:37:30 +03:00
|
|
|
"summary": "Deleted '3'"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-03 01:46:48 +03:00
|
|
|
"sha1": "4ea5afa1e1ab9d35d54c6e9f6e48e4dccd122c54",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-03 01:46:48 +03:00
|
|
|
"sha2": "7e209506e4c90c1a70b4e9064bd71bf837fab417"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-11-02 21:37:30 +03:00
|
|
|
"testCaseDescription": "go-indexing-expressions-delete-rest-test",
|
2016-11-02 17:50:05 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-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 'main' module with 'main' module"
|
2016-11-02 17:50:05 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-11-02 21:37:30 +03:00
|
|
|
"indexing-expressions.go"
|
2016-11-02 17:50:05 +03:00
|
|
|
],
|
2016-11-03 01:46:48 +03:00
|
|
|
"sha1": "7e209506e4c90c1a70b4e9064bd71bf837fab417",
|
2016-11-02 17:50:05 +03:00
|
|
|
"gitDir": "test/corpus/repos/go",
|
2016-11-03 01:46:48 +03:00
|
|
|
"sha2": "35f19a5b4eced5ac29a86a521d1bbbf665d3fd31"
|
2016-11-02 17:50:05 +03:00
|
|
|
}]
|