mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
296 lines
9.1 KiB
JSON
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": "e3babc96eeb7d6b32e96effbb7f2e67593645ef3",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "9b3d1634908c89812fba117acf0fec6c6d733ed1"
|
|
}
|
|
,{
|
|
"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": "9b3d1634908c89812fba117acf0fec6c6d733ed1",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "7dda01638c2067c1295af4b15df26cbd70a7b1ed"
|
|
}
|
|
,{
|
|
"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": "7dda01638c2067c1295af4b15df26cbd70a7b1ed",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "c42788dd00b1ea64500ab4ce97360fad2a58d57e"
|
|
}
|
|
,{
|
|
"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": "c42788dd00b1ea64500ab4ce97360fad2a58d57e",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "78d3367d3a0991305662506d25c233c85efdf7d4"
|
|
}
|
|
,{
|
|
"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": "78d3367d3a0991305662506d25c233c85efdf7d4",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "bd42285fb57a8115ae8d932d48c0e640d367f405"
|
|
}
|
|
,{
|
|
"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": "bd42285fb57a8115ae8d932d48c0e640d367f405",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "c034542dc1d770b9d498a204899c37a63fc984fd"
|
|
}
|
|
,{
|
|
"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": "c034542dc1d770b9d498a204899c37a63fc984fd",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "6ba29990d08fb43b3c90b0a5c428dac27a55aaaa"
|
|
}]
|