1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +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-03 01:46:48 +03:00
"sha1": "4128e7e296595bf11c0915a6a3978af218e3ea62",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "49b16fe8b6af6f5fdc760b90dffd727cf7ee9def"
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-03 01:46:48 +03:00
"sha1": "49b16fe8b6af6f5fdc760b90dffd727cf7ee9def",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "bfe67f8736de7ff8ae2552fa4e1406a9a8037f2e"
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-03 01:46:48 +03:00
"sha1": "bfe67f8736de7ff8ae2552fa4e1406a9a8037f2e",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "c080835d512a35a81cc092e00a21d9291a0e6394"
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-03 01:46:48 +03:00
"sha1": "c080835d512a35a81cc092e00a21d9291a0e6394",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "b49898e65dfb80683e1aacf3b077355c71514fa4"
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-03 01:46:48 +03:00
"sha1": "b49898e65dfb80683e1aacf3b077355c71514fa4",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "75cd5fc9f9296198f8a67b4968d2fc7b949ad465"
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-03 01:46:48 +03:00
"sha1": "75cd5fc9f9296198f8a67b4968d2fc7b949ad465",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "03bac065b5dadaa7a4c58b1620628b8eda06863e"
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-03 01:46:48 +03:00
"sha1": "03bac065b5dadaa7a4c58b1620628b8eda06863e",
2016-11-02 21:37:30 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "9b0fccd745d435122985bb05011520d7d01598f7"
2016-11-02 21:37:30 +03:00
}]