1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/go/increment-decrement-statements.json
2016-11-02 15:13:54 -04:00

461 lines
14 KiB
JSON

[{
"testCaseDescription": "go-increment-decrement-statements-insert-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"sha1": "c59c81e335632fc347fa27748287d80999c2375b",
"gitDir": "test/corpus/repos/go",
"sha2": "32e37e3c25ae079a5432b9c6f3e2d516431c2f9c"
}
,{
"testCaseDescription": "go-increment-decrement-statements-replacement-insert-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
4
]
}
},
"summary": "Added the 'foo' identifier"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 'i' identifier"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'j' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"sha1": "32e37e3c25ae079a5432b9c6f3e2d516431c2f9c",
"gitDir": "test/corpus/repos/go",
"sha2": "350ee3aa1729ac00093319a9d0861053d7dc9355"
}
,{
"testCaseDescription": "go-increment-decrement-statements-delete-insert-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
4
]
},
{
"start": [
3,
1
],
"end": [
3,
2
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'i' identifier"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'j' identifier"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'x' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"sha1": "350ee3aa1729ac00093319a9d0861053d7dc9355",
"gitDir": "test/corpus/repos/go",
"sha2": "9e1c432791fc6d892280a562e2dcd749174d2b43"
}
,{
"testCaseDescription": "go-increment-decrement-statements-replacement-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
1
],
"end": [
3,
2
]
},
{
"start": [
3,
1
],
"end": [
3,
4
]
}
]
},
"summary": "Replaced the 'i' identifier with the 'foo' identifier"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Added the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'j' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"sha1": "9e1c432791fc6d892280a562e2dcd749174d2b43",
"gitDir": "test/corpus/repos/go",
"sha2": "29fea417dae67e97c06d900175852498166c790d"
}
,{
"testCaseDescription": "go-increment-decrement-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
4
]
}
},
"summary": "Deleted the 'foo' identifier"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'x' identifier"
},
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 'i' identifier"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Deleted the 'j' identifier"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
4
]
}
},
"summary": "Added the 'foo' identifier"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
2
]
}
},
"summary": "Added the 'x' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"sha1": "29fea417dae67e97c06d900175852498166c790d",
"gitDir": "test/corpus/repos/go",
"sha2": "9e8fbe1656760ced3768fd954e9f0aa5dc19a675"
}
,{
"testCaseDescription": "go-increment-decrement-statements-delete-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2
]
}
},
"summary": "Deleted the 'i' identifier"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted the 'j' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"sha1": "9e8fbe1656760ced3768fd954e9f0aa5dc19a675",
"gitDir": "test/corpus/repos/go",
"sha2": "4183de6f5eba2fd450991b5eb6e20cea797ca61d"
}
,{
"testCaseDescription": "go-increment-decrement-statements-delete-rest-test",
"expectedResult": {
"changes": {
"increment-decrement-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module statement with the 'main' module statement"
}
]
},
"errors": {}
},
"filePaths": [
"increment-decrement-statements.go"
],
"sha1": "4183de6f5eba2fd450991b5eb6e20cea797ca61d",
"gitDir": "test/corpus/repos/go",
"sha2": "9c95d2e71798f845dfed004c431a9fe472d73712"
}]