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/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-02 23:29:27 +03:00
"sha1": "1333cfebed6d0826caff1d63a2fbd994e7a4fd7b",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "6b99d28500708772289fc6e05692d997882bab5b"
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-02 23:29:27 +03:00
"sha1": "6b99d28500708772289fc6e05692d997882bab5b",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "09769c4df4a5cfe710bbe7973c7035f8d37ca17f"
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-02 23:29:27 +03:00
"sha1": "09769c4df4a5cfe710bbe7973c7035f8d37ca17f",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "a9c510baafdd3d1fc3e5b9e85ad2301c9eb4b9ae"
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-02 23:29:27 +03:00
"sha1": "a9c510baafdd3d1fc3e5b9e85ad2301c9eb4b9ae",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "03c65285a501376fd61f93d428b727cdddd2cf8f"
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-02 23:29:27 +03:00
"sha1": "03c65285a501376fd61f93d428b727cdddd2cf8f",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "d249726a56bb67d6f74a6506b7d470a3501b1b99"
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-02 23:29:27 +03:00
"sha1": "d249726a56bb67d6f74a6506b7d470a3501b1b99",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "a4dde45a8357a06aec3e896ea07bc15ddd1174f8"
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-02 23:29:27 +03:00
"sha1": "a4dde45a8357a06aec3e896ea07bc15ddd1174f8",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "0b98d15cbfdfa999add9e48cd5f9e604d56da8f5"
2016-11-02 04:36:43 +03:00
}]