1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/go/indexing-expressions.json
2016-11-02 18:46:48 -04:00

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": "b9862dee8c71173f167b0eeeb31df710b7a10fb8",
"gitDir": "test/corpus/repos/go",
"sha2": "5f1a6f8aa0cbdb80c4107df6dcae18a9ca14d37c"
}
,{
"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": "5f1a6f8aa0cbdb80c4107df6dcae18a9ca14d37c",
"gitDir": "test/corpus/repos/go",
"sha2": "3d5e888aabfce72a8bc48231ec729e7f0a1c017f"
}
,{
"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": "3d5e888aabfce72a8bc48231ec729e7f0a1c017f",
"gitDir": "test/corpus/repos/go",
"sha2": "a927483bb88c1d207eb1de9a1d3f4fe3ed69108d"
}
,{
"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": "a927483bb88c1d207eb1de9a1d3f4fe3ed69108d",
"gitDir": "test/corpus/repos/go",
"sha2": "e984e42a8f93e7f074561b15dd32e60866866b8a"
}
,{
"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": "e984e42a8f93e7f074561b15dd32e60866866b8a",
"gitDir": "test/corpus/repos/go",
"sha2": "4ea5afa1e1ab9d35d54c6e9f6e48e4dccd122c54"
}
,{
"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": "4ea5afa1e1ab9d35d54c6e9f6e48e4dccd122c54",
"gitDir": "test/corpus/repos/go",
"sha2": "7e209506e4c90c1a70b4e9064bd71bf837fab417"
}
,{
"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": "7e209506e4c90c1a70b4e9064bd71bf837fab417",
"gitDir": "test/corpus/repos/go",
"sha2": "35f19a5b4eced5ac29a86a521d1bbbf665d3fd31"
}]