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
2016-11-02 16:29:27 -04:00

650 lines
22 KiB
JSON

[{
"testCaseDescription": "go-grouped-import-declarations-insert-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Added the \"net/http\" import statement"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Added the \"some/dsl\" import statement"
}
]
},
"errors": {
"grouped-import-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Added the 'import (\n\"net/http\"\n . \"some/dsl\"\n alias \"some/package\"\n)' at line 3, column 1 - line 7, column 2"
}
]
}
},
"filePaths": [
"grouped-import-declarations.go"
],
"sha1": "1333cfebed6d0826caff1d63a2fbd994e7a4fd7b",
"gitDir": "test/corpus/repos/go",
"sha2": "6b99d28500708772289fc6e05692d997882bab5b"
}
,{
"testCaseDescription": "go-grouped-import-declarations-replacement-insert-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Added the \"net/socket\" import statement"
},
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Added the \"types/dsl\" import statement"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Added the \"net/http\" import statement"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Added the \"some/dsl\" import statement"
}
]
},
"errors": {
"grouped-import-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Added the 'import (\n\"net/socket\"\n . \"types/dsl\"\n alias \"awesome/package\"\n)' at line 3, column 1 - line 7, column 2"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Added the 'import (\n\"net/http\"\n . \"some/dsl\"\n alias \"some/package\"\n)' at line 8, column 1 - line 12, column 2"
}
]
}
},
"filePaths": [
"grouped-import-declarations.go"
],
"sha1": "6b99d28500708772289fc6e05692d997882bab5b",
"gitDir": "test/corpus/repos/go",
"sha2": "09769c4df4a5cfe710bbe7973c7035f8d37ca17f"
}
,{
"testCaseDescription": "go-grouped-import-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
13
]
},
{
"start": [
4,
1
],
"end": [
4,
11
]
}
]
},
"summary": "Replaced the \"net/socket\" string with the \"net/http\" string in the \"net/http\" import statement of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
16
]
},
{
"start": [
5,
5
],
"end": [
5,
15
]
}
]
},
"summary": "Replaced the \"types/dsl\" string with the \"some/dsl\" string in the \"some/dsl\" import statement of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
6,
9
],
"end": [
6,
26
]
},
{
"start": [
6,
9
],
"end": [
6,
23
]
}
]
},
"summary": "Replaced the \"awesome/package\" string with the \"some/package\" string"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-import-declarations.go"
],
"sha1": "09769c4df4a5cfe710bbe7973c7035f8d37ca17f",
"gitDir": "test/corpus/repos/go",
"sha2": "a9c510baafdd3d1fc3e5b9e85ad2301c9eb4b9ae"
}
,{
"testCaseDescription": "go-grouped-import-declarations-replacement-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"replace": [
{
"start": [
4,
1
],
"end": [
4,
11
]
},
{
"start": [
4,
1
],
"end": [
4,
13
]
}
]
},
"summary": "Replaced the \"net/http\" string with the \"net/socket\" string in the \"net/socket\" import statement of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
5,
5
],
"end": [
5,
15
]
},
{
"start": [
5,
5
],
"end": [
5,
16
]
}
]
},
"summary": "Replaced the \"some/dsl\" string with the \"types/dsl\" string in the \"types/dsl\" import statement of the 'main' module"
},
{
"span": {
"replace": [
{
"start": [
6,
9
],
"end": [
6,
23
]
},
{
"start": [
6,
9
],
"end": [
6,
26
]
}
]
},
"summary": "Replaced the \"some/package\" string with the \"awesome/package\" string"
}
]
},
"errors": {}
},
"filePaths": [
"grouped-import-declarations.go"
],
"sha1": "a9c510baafdd3d1fc3e5b9e85ad2301c9eb4b9ae",
"gitDir": "test/corpus/repos/go",
"sha2": "03c65285a501376fd61f93d428b727cdddd2cf8f"
}
,{
"testCaseDescription": "go-grouped-import-declarations-delete-replacement-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the \"net/socket\" import statement"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the \"types/dsl\" import statement"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Deleted the \"net/http\" import statement"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Deleted the \"some/dsl\" import statement"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Added the \"net/socket\" import statement"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Added the \"types/dsl\" import statement"
}
]
},
"errors": {
"grouped-import-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the 'import (\n\"net/socket\"\n . \"types/dsl\"\n alias \"awesome/package\"\n)' at line 3, column 1 - line 7, column 2"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Deleted the 'import (\n\"net/http\"\n . \"some/dsl\"\n alias \"some/package\"\n)' at line 8, column 1 - line 12, column 2"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
12,
2
]
}
},
"summary": "Added the 'import (\n\"net/socket\"\n . \"types/dsl\"\n alias \"awesome/package\"\n)' at line 8, column 1 - line 12, column 2"
}
]
}
},
"filePaths": [
"grouped-import-declarations.go"
],
"sha1": "03c65285a501376fd61f93d428b727cdddd2cf8f",
"gitDir": "test/corpus/repos/go",
"sha2": "d249726a56bb67d6f74a6506b7d470a3501b1b99"
}
,{
"testCaseDescription": "go-grouped-import-declarations-delete-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the \"net/http\" import statement"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the \"some/dsl\" import statement"
}
]
},
"errors": {
"grouped-import-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the 'import (\n\"net/http\"\n . \"some/dsl\"\n alias \"some/package\"\n)' at line 3, column 1 - line 7, column 2"
}
]
}
},
"filePaths": [
"grouped-import-declarations.go"
],
"sha1": "d249726a56bb67d6f74a6506b7d470a3501b1b99",
"gitDir": "test/corpus/repos/go",
"sha2": "a4dde45a8357a06aec3e896ea07bc15ddd1174f8"
}
,{
"testCaseDescription": "go-grouped-import-declarations-delete-rest-test",
"expectedResult": {
"changes": {
"grouped-import-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the \"net/socket\" import statement"
},
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the \"types/dsl\" import statement"
}
]
},
"errors": {
"grouped-import-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
7,
2
]
}
},
"summary": "Deleted the 'import (\n\"net/socket\"\n . \"types/dsl\"\n alias \"awesome/package\"\n)' at line 3, column 1 - line 7, column 2"
}
]
}
},
"filePaths": [
"grouped-import-declarations.go"
],
"sha1": "a4dde45a8357a06aec3e896ea07bc15ddd1174f8",
"gitDir": "test/corpus/repos/go",
"sha2": "0b98d15cbfdfa999add9e48cd5f9e604d56da8f5"
}]