mirror of
https://github.com/github/semantic.git
synced 2024-12-27 08:54:14 +03:00
1586 lines
49 KiB
JSON
1586 lines
49 KiB
JSON
[{
|
|
"testCaseDescription": "go-indexing-expressions-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"indexing-expressions.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'main' module with the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"indexing-expressions.go"
|
|
],
|
|
"sha1": "8fc4d3eeaf0f9ccfc06d1f737bf7c872fb9b0cf2",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "ef4024fb3ce428d82cda7796a39296eb17f86090"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-indexing-expressions-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"indexing-expressions.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'z' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
4
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'y' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
2
|
|
],
|
|
"end": [
|
|
5,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'x' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
4
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
2
|
|
],
|
|
"end": [
|
|
6,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'd' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
4
|
|
],
|
|
"end": [
|
|
6,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
6
|
|
],
|
|
"end": [
|
|
6,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
2
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'e' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
5
|
|
],
|
|
"end": [
|
|
7,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
7
|
|
],
|
|
"end": [
|
|
7,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '3'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
2
|
|
],
|
|
"end": [
|
|
8,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'f' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
4
|
|
],
|
|
"end": [
|
|
8,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
6
|
|
],
|
|
"end": [
|
|
8,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
8
|
|
],
|
|
"end": [
|
|
8,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '3'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
9,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'a' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
9,
|
|
3
|
|
],
|
|
"end": [
|
|
9,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
10,
|
|
2
|
|
],
|
|
"end": [
|
|
10,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
11,
|
|
2
|
|
],
|
|
"end": [
|
|
11,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'c' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
11,
|
|
4
|
|
],
|
|
"end": [
|
|
11,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
2
|
|
],
|
|
"end": [
|
|
12,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'd' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
4
|
|
],
|
|
"end": [
|
|
12,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
12,
|
|
6
|
|
],
|
|
"end": [
|
|
12,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
13,
|
|
2
|
|
],
|
|
"end": [
|
|
13,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'e' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
13,
|
|
5
|
|
],
|
|
"end": [
|
|
13,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
13,
|
|
7
|
|
],
|
|
"end": [
|
|
13,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '3'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
14,
|
|
2
|
|
],
|
|
"end": [
|
|
14,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'f' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
14,
|
|
4
|
|
],
|
|
"end": [
|
|
14,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
14,
|
|
6
|
|
],
|
|
"end": [
|
|
14,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
14,
|
|
8
|
|
],
|
|
"end": [
|
|
14,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '3'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"indexing-expressions.go"
|
|
],
|
|
"sha1": "ef4024fb3ce428d82cda7796a39296eb17f86090",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "2fa4b4908fe1d1adc0caec104ed76c574494df41"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-indexing-expressions-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"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"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
2
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
5,
|
|
2
|
|
],
|
|
"end": [
|
|
5,
|
|
3
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'z' identifier with the 'c' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
4
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
5,
|
|
4
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '2' with '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'y' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
2
|
|
],
|
|
"end": [
|
|
5,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'x' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
4
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '1'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"indexing-expressions.go"
|
|
],
|
|
"sha1": "2fa4b4908fe1d1adc0caec104ed76c574494df41",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "e2f05dc83d43bba67b84353d596f0f0ccdcf594c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-indexing-expressions-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"indexing-expressions.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'z' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
4
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'y' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
2
|
|
],
|
|
"end": [
|
|
5,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'x' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
4
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'a' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
3
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
2
|
|
],
|
|
"end": [
|
|
5,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'c' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
4
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '1'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"indexing-expressions.go"
|
|
],
|
|
"sha1": "e2f05dc83d43bba67b84353d596f0f0ccdcf594c",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "868f07bee78f6a0cd2fff775fd1c153a09882305"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-indexing-expressions-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"indexing-expressions.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'z' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
4
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'y' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
5
|
|
],
|
|
"end": [
|
|
4,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
2
|
|
],
|
|
"end": [
|
|
5,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'x' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
4
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
2
|
|
],
|
|
"end": [
|
|
6,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'd' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
4
|
|
],
|
|
"end": [
|
|
6,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
6
|
|
],
|
|
"end": [
|
|
6,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
2
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'e' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
5
|
|
],
|
|
"end": [
|
|
7,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
7
|
|
],
|
|
"end": [
|
|
7,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '3'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
2
|
|
],
|
|
"end": [
|
|
8,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'f' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
4
|
|
],
|
|
"end": [
|
|
8,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
6
|
|
],
|
|
"end": [
|
|
8,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
8
|
|
],
|
|
"end": [
|
|
8,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '3'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
9,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'z' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
9,
|
|
4
|
|
],
|
|
"end": [
|
|
9,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
10,
|
|
2
|
|
],
|
|
"end": [
|
|
10,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'y' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
10,
|
|
5
|
|
],
|
|
"end": [
|
|
10,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
11,
|
|
2
|
|
],
|
|
"end": [
|
|
11,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'x' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
11,
|
|
4
|
|
],
|
|
"end": [
|
|
11,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
15,
|
|
1
|
|
],
|
|
"end": [
|
|
15,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'a' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
15,
|
|
3
|
|
],
|
|
"end": [
|
|
15,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
16,
|
|
2
|
|
],
|
|
"end": [
|
|
16,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
17,
|
|
2
|
|
],
|
|
"end": [
|
|
17,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'c' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
17,
|
|
4
|
|
],
|
|
"end": [
|
|
17,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '1'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"indexing-expressions.go"
|
|
],
|
|
"sha1": "868f07bee78f6a0cd2fff775fd1c153a09882305",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "69fca3f23e9afa18b661b2afea0607030e08b9b9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-indexing-expressions-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"indexing-expressions.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'a' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
3
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
2
|
|
],
|
|
"end": [
|
|
5,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'c' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
4
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
2
|
|
],
|
|
"end": [
|
|
6,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'd' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
4
|
|
],
|
|
"end": [
|
|
6,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
6
|
|
],
|
|
"end": [
|
|
6,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
2
|
|
],
|
|
"end": [
|
|
7,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'e' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
5
|
|
],
|
|
"end": [
|
|
7,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
7
|
|
],
|
|
"end": [
|
|
7,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '3'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
2
|
|
],
|
|
"end": [
|
|
8,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'f' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
4
|
|
],
|
|
"end": [
|
|
8,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
6
|
|
],
|
|
"end": [
|
|
8,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
8
|
|
],
|
|
"end": [
|
|
8,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '3'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"indexing-expressions.go"
|
|
],
|
|
"sha1": "69fca3f23e9afa18b661b2afea0607030e08b9b9",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "3e695576d763c44a57b8e1f132e767c7f8bb4801"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-indexing-expressions-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"indexing-expressions.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
1
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced 'main' module with 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"indexing-expressions.go"
|
|
],
|
|
"sha1": "3e695576d763c44a57b8e1f132e767c7f8bb4801",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "51729d6c7ecb86d2995302b4a6a46269000829f0"
|
|
}]
|