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/label-statements.json

296 lines
9.2 KiB
JSON
Raw Normal View History

2016-11-01 01:22:10 +03:00
[{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-label-statements-insert-test",
2016-11-01 01:22:10 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"label-statements.go": [
2016-11-01 01:22:10 +03:00
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
4,
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
4,
15
2016-11-01 01:22:10 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'insert_label' identifier"
2016-11-01 01:22:10 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"label-statements.go"
2016-11-01 01:22:10 +03:00
],
2016-11-02 22:13:54 +03:00
"sha1": "522da60c113a8f84823164643d5ea7bdd5e6dc50",
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "785978b16fb52ddabee829aef02ce08d18ce2838"
2016-11-01 01:22:10 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-label-statements-replacement-insert-test",
2016-11-01 01:22:10 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"label-statements.go": [
2016-11-01 01:22:10 +03:00
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
2016-11-02 21:37:30 +03:00
6,
2016-11-01 01:22:10 +03:00
1
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"label-statements.go"
2016-11-01 01:22:10 +03:00
],
2016-11-02 22:13:54 +03:00
"sha1": "785978b16fb52ddabee829aef02ce08d18ce2838",
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "54ce812fbc7f9f4a24e379e9440c43af494f86a8"
2016-11-01 01:22:10 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-label-statements-delete-insert-test",
2016-11-01 01:22:10 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"label-statements.go": [
2016-11-01 01:22:10 +03:00
{
"span": {
"replace": [
{
"start": [
2016-11-02 21:37:30 +03:00
4,
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
4,
20
2016-11-01 01:22:10 +03:00
]
},
{
"start": [
2016-11-02 21:37:30 +03:00
4,
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
4,
15
2016-11-01 01:22:10 +03:00
]
}
]
},
2016-11-02 21:37:30 +03:00
"summary": "Replaced the 'replacement_label' identifier with the 'insert_label' identifier"
2016-11-01 01:22:10 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"label-statements.go"
2016-11-01 01:22:10 +03:00
],
2016-11-02 22:13:54 +03:00
"sha1": "54ce812fbc7f9f4a24e379e9440c43af494f86a8",
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "bd3fb7f7cf0c636ed022fb11d745044b07211c3c"
2016-11-01 01:22:10 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-label-statements-replacement-test",
2016-11-01 01:22:10 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"label-statements.go": [
2016-11-01 01:22:10 +03:00
{
"span": {
"replace": [
{
"start": [
2016-11-02 21:37:30 +03:00
4,
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
4,
15
2016-11-01 01:22:10 +03:00
]
},
{
"start": [
2016-11-02 21:37:30 +03:00
4,
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
4,
20
2016-11-01 01:22:10 +03:00
]
}
]
},
2016-11-02 21:37:30 +03:00
"summary": "Replaced the 'insert_label' identifier with the 'replacement_label' identifier"
2016-11-01 01:22:10 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"label-statements.go"
2016-11-01 01:22:10 +03:00
],
2016-11-02 22:13:54 +03:00
"sha1": "bd3fb7f7cf0c636ed022fb11d745044b07211c3c",
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "51c404544f9c47011f93b6f1a168be857352e2d8"
2016-11-01 01:22:10 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-label-statements-delete-replacement-test",
2016-11-01 01:22:10 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"label-statements.go": [
2016-11-01 01:22:10 +03:00
{
"span": {
"delete": {
"start": [
2016-11-02 21:37:30 +03:00
4,
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
4,
20
2016-11-01 01:22:10 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'replacement_label' identifier"
2016-11-01 01:22:10 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-02 21:37:30 +03:00
7,
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
7,
15
2016-11-01 01:22:10 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'insert_label' identifier"
2016-11-01 01:22:10 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
7,
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
7,
20
2016-11-01 01:22:10 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'replacement_label' identifier"
2016-11-01 01:22:10 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"label-statements.go"
2016-11-01 01:22:10 +03:00
],
2016-11-02 22:13:54 +03:00
"sha1": "51c404544f9c47011f93b6f1a168be857352e2d8",
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "e207b8d4a9c01e892bd2bee80a126ed676b7f27a"
2016-11-01 01:22:10 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-label-statements-delete-test",
2016-11-01 01:22:10 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"label-statements.go": [
2016-11-01 01:22:10 +03:00
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
2016-11-02 21:37:30 +03:00
6,
2016-11-01 01:22:10 +03:00
1
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"label-statements.go"
2016-11-01 01:22:10 +03:00
],
2016-11-02 22:13:54 +03:00
"sha1": "e207b8d4a9c01e892bd2bee80a126ed676b7f27a",
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "3f90c15d3d55d4ce907de20a802f9f8004bc1a0d"
2016-11-01 01:22:10 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-label-statements-delete-rest-test",
2016-11-01 01:22:10 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"label-statements.go": [
2016-11-01 01:22:10 +03:00
{
"span": {
"delete": {
"start": [
2016-11-02 21:37:30 +03:00
4,
3
2016-11-01 01:22:10 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
4,
20
2016-11-01 01:22:10 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'replacement_label' identifier"
2016-11-01 01:22:10 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"label-statements.go"
2016-11-01 01:22:10 +03:00
],
2016-11-02 22:13:54 +03:00
"sha1": "3f90c15d3d55d4ce907de20a802f9f8004bc1a0d",
2016-11-01 01:22:10 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "c58a83bbf602ce57397e0c47701657a2eeef4743"
2016-11-01 01:22:10 +03:00
}]