1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 08:25:19 +03:00
semantic/test/corpus/diff-summaries/go/single-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-single-import-declarations-insert-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"single-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
18
]
}
},
"summary": "Added the \"net/http\" import statement"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
20
]
}
},
"summary": "Added the \"some/dsl\" import statement"
}
]
},
"errors": {
2016-11-02 21:37:30 +03:00
"single-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
28
]
}
},
"summary": "Added the 'import alias \"some/package\"' at line 5, column 1 - line 5, column 28"
}
]
}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"single-import-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-02 23:29:27 +03:00
"sha1": "7a88baacee75111d6a919ed7c512c40c3b1990bd",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "ec723951aa790527033b0c49c1f909cb90b5251c"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-single-import-declarations-replacement-insert-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"single-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
17
]
}
},
"summary": "Added the \"foo/bar\" import statement"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
21
]
}
},
"summary": "Added the \"types/dsl\" import statement"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
18
]
}
},
"summary": "Added the \"net/http\" import statement"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
20
]
}
},
"summary": "Added the \"some/dsl\" import statement"
}
]
},
"errors": {
2016-11-02 21:37:30 +03:00
"single-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
32
]
}
},
"summary": "Added the 'import alias \"awesome/packages\"' at line 5, column 1 - line 5, column 32"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
28
]
}
},
"summary": "Added the 'import alias \"some/package\"' at line 8, column 1 - line 8, column 28"
}
]
}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"single-import-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-02 23:29:27 +03:00
"sha1": "ec723951aa790527033b0c49c1f909cb90b5251c",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "fc45dbdcda5c6a8cbf4800ebfc95e6f0fa1623b3"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-single-import-declarations-delete-insert-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"single-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"replace": [
{
"start": [
3,
8
],
"end": [
3,
17
]
},
{
"start": [
3,
8
],
"end": [
3,
18
]
}
]
},
"summary": "Replaced the \"foo/bar\" 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": [
4,
10
],
"end": [
4,
21
]
},
{
"start": [
4,
10
],
"end": [
4,
20
]
}
]
},
"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": [
5,
14
],
"end": [
5,
32
]
},
{
"start": [
5,
14
],
"end": [
5,
28
]
}
]
},
"summary": "Replaced the \"awesome/packages\" string with the \"some/package\" string"
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"single-import-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-02 23:29:27 +03:00
"sha1": "fc45dbdcda5c6a8cbf4800ebfc95e6f0fa1623b3",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "d8b216956092fe5583d769f30bd7e6d7d3e33045"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-single-import-declarations-replacement-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"single-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"replace": [
{
"start": [
3,
8
],
"end": [
3,
18
]
},
{
"start": [
3,
8
],
"end": [
3,
17
]
}
]
},
"summary": "Replaced the \"net/http\" string with the \"foo/bar\" string in the \"foo/bar\" import statement of the 'main' module"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
4,
10
],
"end": [
4,
20
]
},
{
"start": [
4,
10
],
"end": [
4,
21
]
}
]
},
"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": [
5,
14
],
"end": [
5,
28
]
},
{
"start": [
5,
14
],
"end": [
5,
32
]
}
]
},
"summary": "Replaced the \"some/package\" string with the \"awesome/packages\" string"
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"single-import-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-02 23:29:27 +03:00
"sha1": "d8b216956092fe5583d769f30bd7e6d7d3e33045",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "9317c82c0e0d1a66c5fae7f22bbefd461992ac85"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-single-import-declarations-delete-replacement-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"single-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
17
]
}
},
"summary": "Deleted the \"foo/bar\" import statement"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
21
]
}
},
"summary": "Deleted the \"types/dsl\" import statement"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
6,
18
]
}
},
"summary": "Deleted the \"net/http\" import statement"
},
{
"span": {
"delete": {
"start": [
7,
1
],
"end": [
7,
20
]
}
},
"summary": "Deleted the \"some/dsl\" import statement"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
6,
17
]
}
},
"summary": "Added the \"foo/bar\" import statement"
},
{
"span": {
"insert": {
"start": [
7,
1
],
"end": [
7,
21
]
}
},
"summary": "Added the \"types/dsl\" import statement"
}
]
},
"errors": {
2016-11-02 21:37:30 +03:00
"single-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
32
]
}
},
"summary": "Deleted the 'import alias \"awesome/packages\"' at line 5, column 1 - line 5, column 32"
},
{
"span": {
"delete": {
"start": [
8,
1
],
"end": [
8,
28
]
}
},
"summary": "Deleted the 'import alias \"some/package\"' at line 8, column 1 - line 8, column 28"
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
32
]
}
},
"summary": "Added the 'import alias \"awesome/packages\"' at line 8, column 1 - line 8, column 32"
}
]
}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"single-import-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-02 23:29:27 +03:00
"sha1": "9317c82c0e0d1a66c5fae7f22bbefd461992ac85",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "af123254c3f048a6377dbc29fe030fb1da195bb9"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-single-import-declarations-delete-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"single-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
18
]
}
},
"summary": "Deleted the \"net/http\" import statement"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
20
]
}
},
"summary": "Deleted the \"some/dsl\" import statement"
}
]
},
"errors": {
2016-11-02 21:37:30 +03:00
"single-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
28
]
}
},
"summary": "Deleted the 'import alias \"some/package\"' at line 5, column 1 - line 5, column 28"
}
]
}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"single-import-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-02 23:29:27 +03:00
"sha1": "af123254c3f048a6377dbc29fe030fb1da195bb9",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "48fa94d8df0494fc97a53e07ac8b7da3152bd271"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-single-import-declarations-delete-rest-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"single-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
17
]
}
},
"summary": "Deleted the \"foo/bar\" import statement"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
21
]
}
},
"summary": "Deleted the \"types/dsl\" import statement"
}
]
},
"errors": {
2016-11-02 21:37:30 +03:00
"single-import-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
32
]
}
},
"summary": "Deleted the 'import alias \"awesome/packages\"' at line 5, column 1 - line 5, column 32"
}
]
}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"single-import-declarations.go"
2016-11-02 04:36:43 +03:00
],
2016-11-02 23:29:27 +03:00
"sha1": "48fa94d8df0494fc97a53e07ac8b7da3152bd271",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 23:29:27 +03:00
"sha2": "1333cfebed6d0826caff1d63a2fbd994e7a4fd7b"
2016-11-02 04:36:43 +03:00
}]