1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 08:54:14 +03:00
semantic/test/corpus/diff-summaries/go/indexing-expressions.json
2016-11-02 16:35:38 -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": "0061272a887b969ee51b55972b83bdb6d8983d16",
"gitDir": "test/corpus/repos/go",
"sha2": "fa47df1c0a2955dadea222405f6c31aa51173c46"
}
,{
"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": "fa47df1c0a2955dadea222405f6c31aa51173c46",
"gitDir": "test/corpus/repos/go",
"sha2": "e2df53fce8ef9f2a38c578fbf3dbb67107a18b78"
}
,{
"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": "e2df53fce8ef9f2a38c578fbf3dbb67107a18b78",
"gitDir": "test/corpus/repos/go",
"sha2": "2ba2db68645346fd678a1e286156d38780dfeb71"
}
,{
"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": "2ba2db68645346fd678a1e286156d38780dfeb71",
"gitDir": "test/corpus/repos/go",
"sha2": "f91433d3bbc89d10973369b923d29c5491b6ba94"
}
,{
"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": "f91433d3bbc89d10973369b923d29c5491b6ba94",
"gitDir": "test/corpus/repos/go",
"sha2": "7b037e53a3f1f64d59962af1abce07acd5d9e380"
}
,{
"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": "7b037e53a3f1f64d59962af1abce07acd5d9e380",
"gitDir": "test/corpus/repos/go",
"sha2": "586f95ed6fdd3f4b593077ddff546776e1b12a45"
}
,{
"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": "586f95ed6fdd3f4b593077ddff546776e1b12a45",
"gitDir": "test/corpus/repos/go",
"sha2": "9c09e576b360479d31e301dbec9cd3f88eea56ef"
}]