1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/go/label-statements.json
2016-11-10 15:36:44 -05:00

296 lines
9.1 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": "c69fcfce40f178714107964705a6370513f7733e",
"gitDir": "test/corpus/repos/go",
"sha2": "06dfc9d634af0ab6cd3b7040a3abc3ace1d63978"
}
,{
"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 with the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"label-statements.go"
],
"sha1": "06dfc9d634af0ab6cd3b7040a3abc3ace1d63978",
"gitDir": "test/corpus/repos/go",
"sha2": "d8bee422a1feb5d4dbe64d7347f3e79ef8aebebf"
}
,{
"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": "d8bee422a1feb5d4dbe64d7347f3e79ef8aebebf",
"gitDir": "test/corpus/repos/go",
"sha2": "3ffc48383ff965acde1cb61bf128dba6b5a956b3"
}
,{
"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": "3ffc48383ff965acde1cb61bf128dba6b5a956b3",
"gitDir": "test/corpus/repos/go",
"sha2": "f0999f5fb8404d7bf45b5b48a29f7594b3b1d59c"
}
,{
"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": "f0999f5fb8404d7bf45b5b48a29f7594b3b1d59c",
"gitDir": "test/corpus/repos/go",
"sha2": "2d8e39fcd4c65814192407daa7416f6e3c50bb0a"
}
,{
"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 with the 'main' module"
}
]
},
"errors": {}
},
"filePaths": [
"label-statements.go"
],
"sha1": "2d8e39fcd4c65814192407daa7416f6e3c50bb0a",
"gitDir": "test/corpus/repos/go",
"sha2": "194bc6d2f7a068a5fcb156d56ed4ad56dcbdf0c2"
}
,{
"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": "194bc6d2f7a068a5fcb156d56ed4ad56dcbdf0c2",
"gitDir": "test/corpus/repos/go",
"sha2": "150f53c8cfb31186993a9588c913d8bcad3cef1d"
}]