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/if-statements.json

599 lines
19 KiB
JSON
Raw Normal View History

2016-11-02 21:37:30 +03:00
[{
"testCaseDescription": "go-if-statements-insert-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
3,
1
2016-11-02 21:37:30 +03:00
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the 'main' module with the 'main' module"
2016-11-02 21:37:30 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
2016-11-10 23:36:44 +03:00
"sha1": "d721dbc2d0c1b003563fe79a82b9f2d3f609cc64",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "8ff80ea94d04e830ad846d865336e741c8364795"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-if-statements-replacement-insert-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
2016-11-03 01:09:32 +03:00
5,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Added the 'x()' if statement"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
2016-11-03 01:09:32 +03:00
8,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Added the 'y := b(); c' if statement"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"insert": {
"start": [
9,
1
],
"end": [
2016-11-03 01:09:32 +03:00
13,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Added the 'z()' if statement"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"insert": {
"start": [
14,
1
],
"end": [
2016-11-03 01:09:32 +03:00
16,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Added the 'a()' if statement"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"insert": {
"start": [
17,
1
],
"end": [
2016-11-03 01:09:32 +03:00
19,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Added the 'a := b(); c' if statement"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"insert": {
"start": [
20,
1
],
"end": [
2016-11-03 01:09:32 +03:00
24,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Added the 'a()' if statement"
2016-11-02 21:37:30 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
2016-11-10 23:36:44 +03:00
"sha1": "8ff80ea94d04e830ad846d865336e741c8364795",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "184deca8ba9943201f8512be5ff7f986db1bd6ac"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-if-statements-delete-insert-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
4
],
"end": [
3,
5
]
},
{
"start": [
3,
4
],
"end": [
3,
5
]
}
]
},
"summary": "Replaced the 'x' identifier with the 'a' identifier in the a() function call"
},
{
"span": {
"replace": [
{
"start": [
6,
4
],
"end": [
6,
5
]
},
{
"start": [
6,
4
],
"end": [
6,
5
]
}
]
},
2016-11-02 23:46:17 +03:00
"summary": "Replaced the 'y' identifier with the 'a' identifier in the a variable"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"replace": [
{
"start": [
9,
4
],
"end": [
9,
5
]
},
{
"start": [
9,
4
],
"end": [
9,
5
]
}
]
},
"summary": "Replaced the 'z' identifier with the 'a' identifier in the a() function call"
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
2016-11-10 23:36:44 +03:00
"sha1": "184deca8ba9943201f8512be5ff7f986db1bd6ac",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "1068ba7d4a382ce159ece211090eb64635d01d6f"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-if-statements-replacement-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"replace": [
{
"start": [
3,
4
],
"end": [
3,
5
]
},
{
"start": [
3,
4
],
"end": [
3,
5
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'x' identifier in the x() function call"
},
{
"span": {
"replace": [
{
"start": [
6,
4
],
"end": [
6,
5
]
},
{
"start": [
6,
4
],
"end": [
6,
5
]
}
]
},
2016-11-02 23:46:17 +03:00
"summary": "Replaced the 'a' identifier with the 'y' identifier in the y variable"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"replace": [
{
"start": [
9,
4
],
"end": [
9,
5
]
},
{
"start": [
9,
4
],
"end": [
9,
5
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'z' identifier in the z() function call"
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
2016-11-10 23:36:44 +03:00
"sha1": "1068ba7d4a382ce159ece211090eb64635d01d6f",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "30bf2cf7b32f74fcb2eeeee6582adfff52d0f7f7"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-if-statements-delete-replacement-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
2016-11-03 01:09:32 +03:00
5,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Deleted the 'x()' if statement"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
2016-11-03 01:09:32 +03:00
8,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Deleted the 'y := b(); c' if statement"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
2016-11-03 01:09:32 +03:00
13,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Deleted the 'z()' if statement"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"delete": {
"start": [
14,
1
],
"end": [
2016-11-03 01:09:32 +03:00
16,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Deleted the 'a()' if statement"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"delete": {
"start": [
17,
1
],
"end": [
2016-11-03 01:09:32 +03:00
19,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Deleted the 'a := b(); c' if statement"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"delete": {
"start": [
20,
1
],
"end": [
2016-11-03 01:09:32 +03:00
24,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Deleted the 'a()' if statement"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"insert": {
"start": [
14,
1
],
"end": [
2016-11-03 01:09:32 +03:00
16,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Added the 'x()' if statement"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"insert": {
"start": [
17,
1
],
"end": [
2016-11-03 01:09:32 +03:00
19,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Added the 'y := b(); c' if statement"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"insert": {
"start": [
20,
1
],
"end": [
2016-11-03 01:09:32 +03:00
24,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Added the 'z()' if statement"
2016-11-02 21:37:30 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
2016-11-10 23:36:44 +03:00
"sha1": "30bf2cf7b32f74fcb2eeeee6582adfff52d0f7f7",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "944d39dd78c1bfad643bf098aff846ff74368f41"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-if-statements-delete-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
2016-11-03 01:09:32 +03:00
5,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Deleted the 'a()' if statement"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
2016-11-03 01:09:32 +03:00
8,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Deleted the 'a := b(); c' if statement"
2016-11-02 21:37:30 +03:00
},
{
"span": {
"delete": {
"start": [
9,
1
],
"end": [
2016-11-03 01:09:32 +03:00
13,
2
2016-11-02 21:37:30 +03:00
]
}
},
2016-11-03 01:09:32 +03:00
"summary": "Deleted the 'a()' if statement"
2016-11-02 21:37:30 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
2016-11-10 23:36:44 +03:00
"sha1": "944d39dd78c1bfad643bf098aff846ff74368f41",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "e9ce6c61402f2e5b5b6a18eb58248f7108645a98"
2016-11-02 21:37:30 +03:00
}
,{
"testCaseDescription": "go-if-statements-delete-rest-test",
"expectedResult": {
"changes": {
"if-statements.go": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
3,
1
2016-11-02 21:37:30 +03:00
]
}
]
},
"summary": "Replaced the 'main' module with the 'main' module"
2016-11-02 21:37:30 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"if-statements.go"
],
2016-11-10 23:36:44 +03:00
"sha1": "e9ce6c61402f2e5b5b6a18eb58248f7108645a98",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "c960fcc65ac55182c76b10f2b295a3cc10166860"
2016-11-02 21:37:30 +03:00
}]