1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/go/assignment-statements.json

1349 lines
42 KiB
JSON
Raw Normal View History

2016-11-02 21:37:30 +03:00
[{
"testCaseDescription": "go-assignment-statements-insert-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
3,
1
2016-11-02 21:37:30 +03:00
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module with the 'main' module"
2016-11-02 21:37:30 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
2016-11-10 23:36:44 +03:00
"sha1": "b320a69e5c137c5545033f688550f587c255cd27",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "8a2c5665152ae9b8684a39f596572feae6697877"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-assignment-statements-replacement-insert-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Added 'x' identifier"
},
{
"span": {
"insert": {
"start": [
3,
5
],
"end": [
3,
6
]
}
},
"summary": "Added '1'"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added 'y' identifier"
},
{
"span": {
"insert": {
"start": [
4,
4
],
"end": [
4,
5
]
}
},
"summary": "Added 'c' identifier"
},
{
"span": {
"insert": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Added '2'"
},
{
"span": {
"insert": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Added '3'"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Added 'z' identifier"
},
{
"span": {
"insert": {
"start": [
5,
6
],
"end": [
5,
7
]
}
},
"summary": "Added '3'"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Added 'h' identifier"
},
{
"span": {
"insert": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Added '1'"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
2
]
}
},
"summary": "Added 'a' identifier"
},
{
"span": {
"insert": {
"start": [
7,
5
],
"end": [
7,
6
]
}
},
"summary": "Added '1'"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
2
]
}
},
"summary": "Added 'b' identifier"
},
{
"span": {
"insert": {
"start": [
8,
4
],
"end": [
8,
5
]
}
},
"summary": "Added 'c' identifier"
},
{
"span": {
"insert": {
"start": [
8,
9
],
"end": [
8,
10
]
}
},
"summary": "Added '2'"
},
{
"span": {
"insert": {
"start": [
8,
12
],
"end": [
8,
13
]
}
},
"summary": "Added '3'"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
2
]
}
},
"summary": "Added 'd' identifier"
},
{
"span": {
"insert": {
"start": [
9,
6
],
"end": [
9,
7
]
}
},
"summary": "Added '3'"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
2
]
}
},
"summary": "Added 'e' identifier"
},
{
"span": {
"insert": {
"start": [
10,
6
],
"end": [
10,
7
]
}
},
"summary": "Added '1'"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
2016-11-10 23:36:44 +03:00
"sha1": "8a2c5665152ae9b8684a39f596572feae6697877",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "8732e9a5f4751218dd8c7bd121b9b3f976144143"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-assignment-statements-delete-insert-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
2
]
},
{
"start": [
3,
1
],
"end": [
3,
2
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'y' identifier with the 'b' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
2
]
},
{
"start": [
5,
1
],
"end": [
5,
2
]
}
]
},
"summary": "Replaced the 'z' identifier with the 'd' identifier"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Added 'e' identifier"
},
{
"span": {
"insert": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Added '1'"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted 'h' identifier"
},
{
"span": {
"delete": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Deleted '1'"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
2016-11-10 23:36:44 +03:00
"sha1": "8732e9a5f4751218dd8c7bd121b9b3f976144143",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "18263c4aaf3e218b171b61d403d2757aa28021c8"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-assignment-statements-replacement-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
2
]
},
{
"start": [
3,
1
],
"end": [
3,
2
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier"
},
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
2
]
},
{
"start": [
4,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'y' identifier"
},
{
"span": {
"replace": [
{
"start": [
5,
1
],
"end": [
5,
2
]
},
{
"start": [
5,
1
],
"end": [
5,
2
]
}
]
},
"summary": "Replaced the 'd' identifier with the 'z' identifier"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Added 'h' identifier"
},
{
"span": {
"insert": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Added '1'"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted 'e' identifier"
},
{
"span": {
"delete": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Deleted '1'"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
2016-11-10 23:36:44 +03:00
"sha1": "18263c4aaf3e218b171b61d403d2757aa28021c8",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "299b0c2fe77d0bd36984a4f639b71346f9b613f2"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-assignment-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Deleted 'x' identifier"
},
{
"span": {
"delete": {
"start": [
3,
5
],
"end": [
3,
6
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted 'y' identifier"
},
{
"span": {
"delete": {
"start": [
4,
4
],
"end": [
4,
5
]
}
},
"summary": "Deleted 'c' identifier"
},
{
"span": {
"delete": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Deleted '2'"
},
{
"span": {
"delete": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Deleted '3'"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted 'z' identifier"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
7
]
}
},
"summary": "Deleted '3'"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted 'h' identifier"
},
{
"span": {
"delete": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted 'a' identifier"
},
{
"span": {
"delete": {
"start": [
7,
5
],
"end": [
7,
6
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
2
]
}
},
"summary": "Deleted 'b' identifier"
},
{
"span": {
"delete": {
"start": [
8,
4
],
"end": [
8,
5
]
}
},
"summary": "Deleted 'c' identifier"
},
{
"span": {
"delete": {
"start": [
8,
9
],
"end": [
8,
10
]
}
},
"summary": "Deleted '2'"
},
{
"span": {
"delete": {
"start": [
8,
12
],
"end": [
8,
13
]
}
},
"summary": "Deleted '3'"
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
9,
2
]
}
},
"summary": "Deleted 'd' identifier"
},
{
"span": {
"delete": {
"start": [
9,
6
],
"end": [
9,
7
]
}
},
"summary": "Deleted '3'"
},
{
"span": {
"delete": {
"start": [
10,
1
],
"end": [
10,
2
]
}
},
"summary": "Deleted 'e' identifier"
},
{
"span": {
"delete": {
"start": [
10,
6
],
"end": [
10,
7
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
2
]
}
},
"summary": "Added 'x' identifier"
},
{
"span": {
"insert": {
"start": [
7,
5
],
"end": [
7,
6
]
}
},
"summary": "Added '1'"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
2
]
}
},
"summary": "Added 'y' identifier"
},
{
"span": {
"insert": {
"start": [
8,
4
],
"end": [
8,
5
]
}
},
"summary": "Added 'c' identifier"
},
{
"span": {
"insert": {
"start": [
8,
9
],
"end": [
8,
10
]
}
},
"summary": "Added '2'"
},
{
"span": {
"insert": {
"start": [
8,
12
],
"end": [
8,
13
]
}
},
"summary": "Added '3'"
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
9,
2
]
}
},
"summary": "Added 'z' identifier"
},
{
"span": {
"insert": {
"start": [
9,
6
],
"end": [
9,
7
]
}
},
"summary": "Added '3'"
},
{
"span": {
"insert": {
"start": [
10,
1
],
"end": [
10,
2
]
}
},
"summary": "Added 'h' identifier"
},
{
"span": {
"insert": {
"start": [
10,
6
],
"end": [
10,
7
]
}
},
"summary": "Added '1'"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
2016-11-10 23:36:44 +03:00
"sha1": "299b0c2fe77d0bd36984a4f639b71346f9b613f2",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "b8fae5034ae26643f9e4f0749b6818be5c001503"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-assignment-statements-delete-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Deleted 'a' identifier"
},
{
"span": {
"delete": {
"start": [
3,
5
],
"end": [
3,
6
]
}
},
"summary": "Deleted '1'"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted 'b' identifier"
},
{
"span": {
"delete": {
"start": [
4,
4
],
"end": [
4,
5
]
}
},
"summary": "Deleted 'c' identifier"
},
{
"span": {
"delete": {
"start": [
4,
9
],
"end": [
4,
10
]
}
},
"summary": "Deleted '2'"
},
{
"span": {
"delete": {
"start": [
4,
12
],
"end": [
4,
13
]
}
},
"summary": "Deleted '3'"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted 'd' identifier"
},
{
"span": {
"delete": {
"start": [
5,
6
],
"end": [
5,
7
]
}
},
"summary": "Deleted '3'"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted 'e' identifier"
},
{
"span": {
"delete": {
"start": [
6,
6
],
"end": [
6,
7
]
}
},
"summary": "Deleted '1'"
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
2016-11-10 23:36:44 +03:00
"sha1": "b8fae5034ae26643f9e4f0749b6818be5c001503",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "6ff6167c1bf691334b36eab3c3da243812e31479"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-assignment-statements-delete-rest-test",
"expectedResult": {
"changes": {
"assignment-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
3,
1
2016-11-02 21:37:30 +03:00
]
}
]
},
"summary": "Replaced 'main' module with 'main' module"
2016-11-02 21:37:30 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"assignment-statements.go"
],
2016-11-10 23:36:44 +03:00
"sha1": "6ff6167c1bf691334b36eab3c3da243812e31479",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "d721dbc2d0c1b003563fe79a82b9f2d3f609cc64"
2016-11-02 21:37:30 +03:00
}]