mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
296 lines
9.2 KiB
JSON
296 lines
9.2 KiB
JSON
[{
|
|
"testCaseDescription": "go-label-statements-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"label-statements.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'insert_label' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"label-statements.go"
|
|
],
|
|
"sha1": "522da60c113a8f84823164643d5ea7bdd5e6dc50",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "785978b16fb52ddabee829aef02ce08d18ce2838"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-label-statements-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"label-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'main' module statement with the 'main' module statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"label-statements.go"
|
|
],
|
|
"sha1": "785978b16fb52ddabee829aef02ce08d18ce2838",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "54ce812fbc7f9f4a24e379e9440c43af494f86a8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-label-statements-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"label-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
20
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
15
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'replacement_label' identifier with the 'insert_label' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"label-statements.go"
|
|
],
|
|
"sha1": "54ce812fbc7f9f4a24e379e9440c43af494f86a8",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "bd3fb7f7cf0c636ed022fb11d745044b07211c3c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-label-statements-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"label-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
20
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'insert_label' identifier with the 'replacement_label' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"label-statements.go"
|
|
],
|
|
"sha1": "bd3fb7f7cf0c636ed022fb11d745044b07211c3c",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "51c404544f9c47011f93b6f1a168be857352e2d8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-label-statements-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"label-statements.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'replacement_label' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
3
|
|
],
|
|
"end": [
|
|
7,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'insert_label' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
3
|
|
],
|
|
"end": [
|
|
7,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'replacement_label' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"label-statements.go"
|
|
],
|
|
"sha1": "51c404544f9c47011f93b6f1a168be857352e2d8",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "e207b8d4a9c01e892bd2bee80a126ed676b7f27a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-label-statements-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"label-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
1
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'main' module statement with the 'main' module statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"label-statements.go"
|
|
],
|
|
"sha1": "e207b8d4a9c01e892bd2bee80a126ed676b7f27a",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "3f90c15d3d55d4ce907de20a802f9f8004bc1a0d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-label-statements-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"label-statements.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
20
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'replacement_label' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"label-statements.go"
|
|
],
|
|
"sha1": "3f90c15d3d55d4ce907de20a802f9f8004bc1a0d",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "c58a83bbf602ce57397e0c47701657a2eeef4743"
|
|
}]
|