mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
425 lines
13 KiB
JSON
425 lines
13 KiB
JSON
[{
|
|
"testCaseDescription": "go-send-statements-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"send-statements.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'foo' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
8
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '5'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"send-statements.go"
|
|
],
|
|
"sha1": "f37deb6dc56bf57c827ea0a2e7b1aaa4df984ae8",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "bfe6a7ccec95f397a2aa82266b40fde340b6bb0e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-send-statements-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"send-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'main' module with the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"send-statements.go"
|
|
],
|
|
"sha1": "bfe6a7ccec95f397a2aa82266b40fde340b6bb0e",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "ae59d7cfdcddd08a7e9265f25b6a9de7f370b16b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-send-statements-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"send-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'bar' identifier with the 'foo' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
8
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
8
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '6' with '5'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"send-statements.go"
|
|
],
|
|
"sha1": "ae59d7cfdcddd08a7e9265f25b6a9de7f370b16b",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "018e3f229d0c9792e7427aeba71132e718a0e6d7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-send-statements-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"send-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'foo' identifier with the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
8
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
8
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '5' with '6'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"send-statements.go"
|
|
],
|
|
"sha1": "018e3f229d0c9792e7427aeba71132e718a0e6d7",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "a64839b235d1f4b4d5d3cbd6a814f7718d168059"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-send-statements-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"send-statements.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
8
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '6'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'foo' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
8
|
|
],
|
|
"end": [
|
|
4,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '5'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
8
|
|
],
|
|
"end": [
|
|
4,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '6'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"send-statements.go"
|
|
],
|
|
"sha1": "a64839b235d1f4b4d5d3cbd6a814f7718d168059",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "4cd6a017b45e546e01a58056982309141912e898"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-send-statements-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"send-statements.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
1
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced 'main' module with 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"send-statements.go"
|
|
],
|
|
"sha1": "4cd6a017b45e546e01a58056982309141912e898",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "b79ddb31aeff0da1b564f0c1b10a3e140195de34"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-send-statements-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"send-statements.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
8
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '6'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"send-statements.go"
|
|
],
|
|
"sha1": "b79ddb31aeff0da1b564f0c1b10a3e140195de34",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "5553a0bfb2f8949795a627aeb94cae2da6180c82"
|
|
}]
|