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 22:13:54 +03:00
"sha1": "8112428073c8e16d93141f15f065d53af04790df",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "b232c897b2ecd7e2373767b05ad88839d28d061f"
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 22:13:54 +03:00
"sha1": "b232c897b2ecd7e2373767b05ad88839d28d061f",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "9fed396db756f688e65e13f76b3d7acb3fdbdd80"
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
]
}
]
},
2016-11-02 21:37:30 +03:00
"summary": "Replaced the \"net/socket\" string with the \"net/http\" string in the \"net/http\" import statement of the 'main' module statement"
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 statement"
},
{
"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 22:13:54 +03:00
"sha1": "9fed396db756f688e65e13f76b3d7acb3fdbdd80",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "5429782d4c9e1c5cba02ecec8d0555aa0994ecfe"
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
]
}
]
},
2016-11-02 21:37:30 +03:00
"summary": "Replaced the \"net/http\" string with the \"net/socket\" string in the \"net/socket\" import statement of the 'main' module statement"
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 statement"
},
{
"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 22:13:54 +03:00
"sha1": "5429782d4c9e1c5cba02ecec8d0555aa0994ecfe",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "a90aa610272abd8a0f78ba9d2dd52df656cb8fbb"
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 22:13:54 +03:00
"sha1": "a90aa610272abd8a0f78ba9d2dd52df656cb8fbb",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "6a791cfcf13e1c486a19f3383f490c9c9520496a"
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 22:13:54 +03:00
"sha1": "6a791cfcf13e1c486a19f3383f490c9c9520496a",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "6c51e199543a197a73d9cc89cf003a578ff060c2"
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 22:13:54 +03:00
"sha1": "6c51e199543a197a73d9cc89cf003a578ff060c2",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "d9c2451e8b8fcd1ae7183962f520fc63261e8480"
2016-11-02 04:36:43 +03:00
}]