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/label-statements.json
2016-11-02 18:09:32 -04: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": "5356fb3bc7466c8960a60271832d97b562e4df5b",
"gitDir": "test/corpus/repos/go",
"sha2": "709096efbf3c0de17837ceb2b8c0dae25398e4b1"
}
,{
"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": "709096efbf3c0de17837ceb2b8c0dae25398e4b1",
"gitDir": "test/corpus/repos/go",
"sha2": "656c57b4e7aff84798e15f388911c6970843cfe7"
}
,{
"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": "656c57b4e7aff84798e15f388911c6970843cfe7",
"gitDir": "test/corpus/repos/go",
"sha2": "44faf5c1a0be0ce32a2a1f6b1a0e0c8f30b31383"
}
,{
"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": "44faf5c1a0be0ce32a2a1f6b1a0e0c8f30b31383",
"gitDir": "test/corpus/repos/go",
"sha2": "3aff2dfb7621d02759a469beab4f22741cb75f39"
}
,{
"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": "3aff2dfb7621d02759a469beab4f22741cb75f39",
"gitDir": "test/corpus/repos/go",
"sha2": "2503415be676c0fb01f07755fc86cdff73bdbce3"
}
,{
"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": "2503415be676c0fb01f07755fc86cdff73bdbce3",
"gitDir": "test/corpus/repos/go",
"sha2": "afbcf501c6b3005b905a461cb165ce8c16a1a995"
}
,{
"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": "afbcf501c6b3005b905a461cb165ce8c16a1a995",
"gitDir": "test/corpus/repos/go",
"sha2": "1e83701166593ecee4674f1f313f9ab640cc9f76"
}]