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/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-02 23:29:27 +03:00
"sha1": "fbbeb0c333ddfd148e10aa217d008b1f8fdf85f6",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "c72c81dd5dd45a6aeb426f0f12d3c028acf0d4c5"
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-02 23:29:27 +03:00
"sha1": "c72c81dd5dd45a6aeb426f0f12d3c028acf0d4c5",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "fc0cf7e5804953bf6d963c7d4755b8dd9a63b9c3"
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-02 23:29:27 +03:00
"sha1": "fc0cf7e5804953bf6d963c7d4755b8dd9a63b9c3",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "381909905519be76dfd344a0f29cd0dc5000ae62"
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-02 23:29:27 +03:00
"sha1": "381909905519be76dfd344a0f29cd0dc5000ae62",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "7b7081850d46e4e6738bcd5e346f9d53649ce5b2"
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-02 23:29:27 +03:00
"sha1": "7b7081850d46e4e6738bcd5e346f9d53649ce5b2",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "37c36bd672286e4fa0cabbf320391f309657eea4"
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-02 23:29:27 +03:00
"sha1": "37c36bd672286e4fa0cabbf320391f309657eea4",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "5cb7d5f4ceddf5e03e73e481657a51a3d6877579"
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-02 23:29:27 +03:00
"sha1": "5cb7d5f4ceddf5e03e73e481657a51a3d6877579",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "ebdebdac636f0c31c439a07859f1b6228a007470"
2016-11-02 21:37:30 +03:00
}]