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/grouped-import-declarations.json

650 lines
22 KiB
JSON
Raw Normal View History

2016-11-02 04:36:43 +03:00
[{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-grouped-import-declarations-insert-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the \"net/http\" import statement"
},
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
3,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the \"some/dsl\" import statement"
}
]
},
"errors": {
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
3,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
2
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'import (\n\"net/http\"\n . \"some/dsl\"\n alias \"some/package\"\n)' at line 3, column 1 - line 7, column 2"
2016-11-02 04:36:43 +03:00
}
]
}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-10 23:36:44 +03:00
"sha1": "60d0595870f22587e7f31bed659faaa89e73c81d",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "1fe7a29c5ec7cbbfbbe9c08f0df45e550a37e309"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-grouped-import-declarations-replacement-insert-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
2
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the \"net/socket\" import statement"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
3,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the \"types/dsl\" import statement"
},
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
8,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
12,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the \"net/http\" import statement"
},
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
8,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
12,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the \"some/dsl\" import statement"
}
]
},
"errors": {
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
3,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
2
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'import (\n\"net/socket\"\n . \"types/dsl\"\n alias \"awesome/package\"\n)' at line 3, column 1 - line 7, column 2"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
2016-11-02 21:37:30 +03:00
12,
2
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'import (\n\"net/http\"\n . \"some/dsl\"\n alias \"some/package\"\n)' at line 8, column 1 - line 12, column 2"
2016-11-02 04:36:43 +03:00
}
]
}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-10 23:36:44 +03:00
"sha1": "1fe7a29c5ec7cbbfbbe9c08f0df45e550a37e309",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "bfae8c56020292f9b5b6a6bf4b3a93baca698132"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-grouped-import-declarations-delete-insert-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"replace": [
{
"start": [
2016-11-02 21:37:30 +03:00
4,
1
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
4,
13
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
2016-11-02 21:37:30 +03:00
4,
1
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
4,
11
2016-11-02 04:36:43 +03:00
]
}
]
},
"summary": "Replaced the \"net/socket\" string with the \"net/http\" string in the \"net/http\" import statement of the 'main' module"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-11-02 21:37:30 +03:00
5,
5
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
5,
16
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
2016-11-02 21:37:30 +03:00
5,
5
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
5,
15
2016-11-02 04:36:43 +03:00
]
}
]
},
"summary": "Replaced the \"types/dsl\" string with the \"some/dsl\" string in the \"some/dsl\" import statement of the 'main' module"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-11-02 21:37:30 +03:00
6,
9
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
6,
26
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
2016-11-02 21:37:30 +03:00
6,
9
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
6,
23
2016-11-02 04:36:43 +03:00
]
}
]
},
2016-11-02 21:37:30 +03:00
"summary": "Replaced the \"awesome/package\" string with the \"some/package\" string"
2016-11-02 04:36:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-10 23:36:44 +03:00
"sha1": "bfae8c56020292f9b5b6a6bf4b3a93baca698132",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "4486c18ce99e8c00f902916fefae9c8e93e53604"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-grouped-import-declarations-replacement-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"replace": [
{
"start": [
2016-11-02 21:37:30 +03:00
4,
1
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
4,
11
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
2016-11-02 21:37:30 +03:00
4,
1
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
4,
13
2016-11-02 04:36:43 +03:00
]
}
]
},
"summary": "Replaced the \"net/http\" string with the \"net/socket\" string in the \"net/socket\" import statement of the 'main' module"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-11-02 21:37:30 +03:00
5,
5
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
5,
15
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
2016-11-02 21:37:30 +03:00
5,
5
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
5,
16
2016-11-02 04:36:43 +03:00
]
}
]
},
"summary": "Replaced the \"some/dsl\" string with the \"types/dsl\" string in the \"types/dsl\" import statement of the 'main' module"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
2016-11-02 21:37:30 +03:00
6,
9
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
6,
23
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
2016-11-02 21:37:30 +03:00
6,
9
2016-11-02 04:36:43 +03:00
],
"end": [
2016-11-02 21:37:30 +03:00
6,
26
2016-11-02 04:36:43 +03:00
]
}
]
},
2016-11-02 21:37:30 +03:00
"summary": "Replaced the \"some/package\" string with the \"awesome/package\" string"
2016-11-02 04:36:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-10 23:36:44 +03:00
"sha1": "4486c18ce99e8c00f902916fefae9c8e93e53604",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "ebeab6442fbe6ebfa96ec494a608838fdeb939d2"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-grouped-import-declarations-delete-replacement-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
2
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the \"net/socket\" import statement"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-02 21:37:30 +03:00
3,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the \"types/dsl\" import statement"
},
{
"span": {
"delete": {
"start": [
2016-11-02 21:37:30 +03:00
8,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
12,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the \"net/http\" import statement"
},
{
"span": {
"delete": {
"start": [
2016-11-02 21:37:30 +03:00
8,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
12,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the \"some/dsl\" import statement"
},
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
8,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
12,
2
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the \"net/socket\" import statement"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
8,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
12,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Added the \"types/dsl\" import statement"
}
]
},
"errors": {
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
2016-11-02 21:37:30 +03:00
3,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
2
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'import (\n\"net/socket\"\n . \"types/dsl\"\n alias \"awesome/package\"\n)' at line 3, column 1 - line 7, column 2"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
2016-11-02 21:37:30 +03:00
12,
2
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'import (\n\"net/http\"\n . \"some/dsl\"\n alias \"some/package\"\n)' at line 8, column 1 - line 12, column 2"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
2016-11-02 21:37:30 +03:00
12,
2
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'import (\n\"net/socket\"\n . \"types/dsl\"\n alias \"awesome/package\"\n)' at line 8, column 1 - line 12, column 2"
2016-11-02 04:36:43 +03:00
}
]
}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-10 23:36:44 +03:00
"sha1": "ebeab6442fbe6ebfa96ec494a608838fdeb939d2",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "a146a9af4f24e654718d36f735709738ac4aa6fc"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-grouped-import-declarations-delete-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the \"net/http\" import statement"
},
{
"span": {
"delete": {
"start": [
2016-11-02 21:37:30 +03:00
3,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the \"some/dsl\" import statement"
}
]
},
"errors": {
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
2016-11-02 21:37:30 +03:00
3,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
2
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'import (\n\"net/http\"\n . \"some/dsl\"\n alias \"some/package\"\n)' at line 3, column 1 - line 7, column 2"
2016-11-02 04:36:43 +03:00
}
]
}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-10 23:36:44 +03:00
"sha1": "a146a9af4f24e654718d36f735709738ac4aa6fc",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "f81df7eb8f27b1b375c0539beda1cb82f16df0ae"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-grouped-import-declarations-delete-rest-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
2
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the \"net/socket\" import statement"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-02 21:37:30 +03:00
3,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
2
2016-11-02 04:36:43 +03:00
]
}
},
"summary": "Deleted the \"types/dsl\" import statement"
}
]
},
"errors": {
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
2016-11-02 21:37:30 +03:00
3,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
2
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'import (\n\"net/socket\"\n . \"types/dsl\"\n alias \"awesome/package\"\n)' at line 3, column 1 - line 7, column 2"
2016-11-02 04:36:43 +03:00
}
]
}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"grouped-import-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-10 23:36:44 +03:00
"sha1": "f81df7eb8f27b1b375c0539beda1cb82f16df0ae",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "7d873f0d5579c52294d6b425bd5d9729ac1782e1"
2016-11-02 04:36:43 +03:00
}]