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": "277628122c181ee4dc84288044093605d95d9fd9",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "46d40e28b29245bd48d82c81e8b69b15038f95c3"
|
|
}
|
|
,{
|
|
"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": "46d40e28b29245bd48d82c81e8b69b15038f95c3",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "67d9d9336667e34310059d5eebc88b94b82c7f4b"
|
|
}
|
|
,{
|
|
"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": "67d9d9336667e34310059d5eebc88b94b82c7f4b",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "4961359ddddba155b8fd57a1fbd07890589bc7ca"
|
|
}
|
|
,{
|
|
"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": "4961359ddddba155b8fd57a1fbd07890589bc7ca",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "50c82e4d6b4b98309caa63d0c0a8873cb047f386"
|
|
}
|
|
,{
|
|
"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": "50c82e4d6b4b98309caa63d0c0a8873cb047f386",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "3ad18812b6416e0c69ac0b71f29c91bed9ddc0fe"
|
|
}
|
|
,{
|
|
"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": "3ad18812b6416e0c69ac0b71f29c91bed9ddc0fe",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "89d04171d8982a143ede7326d16d1807cbd1fc90"
|
|
}
|
|
,{
|
|
"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": "89d04171d8982a143ede7326d16d1807cbd1fc90",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "01b07cfb0b179c63ab0873c0e88cc5e96854d768"
|
|
}]
|