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/send-statements.json
2016-11-02 18:09:32 -04:00

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": "60606adb094cd924efe1dc4a21030d13234f95ec",
"gitDir": "test/corpus/repos/go",
"sha2": "83fbb46f7ff6fb1612d517e0d1598c0e69ec0128"
}
,{
"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": "83fbb46f7ff6fb1612d517e0d1598c0e69ec0128",
"gitDir": "test/corpus/repos/go",
"sha2": "a796266d5f32a14b35342c095438186375cad64e"
}
,{
"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": "a796266d5f32a14b35342c095438186375cad64e",
"gitDir": "test/corpus/repos/go",
"sha2": "578795775a60d8487732c33bceee224863ded378"
}
,{
"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": "578795775a60d8487732c33bceee224863ded378",
"gitDir": "test/corpus/repos/go",
"sha2": "288e96d1a3b3c4ba5be3a4ba3de805524d394f66"
}
,{
"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": "288e96d1a3b3c4ba5be3a4ba3de805524d394f66",
"gitDir": "test/corpus/repos/go",
"sha2": "227ff285ac3d183eadc872f2b07bacea575683e6"
}
,{
"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": "227ff285ac3d183eadc872f2b07bacea575683e6",
"gitDir": "test/corpus/repos/go",
"sha2": "e31c4137812a95e4c89696f9886234a5c07c180c"
}
,{
"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": "e31c4137812a95e4c89696f9886234a5c07c180c",
"gitDir": "test/corpus/repos/go",
"sha2": "14c6b0b0ae30cc8688e08a294b1555013ed49de2"
}]