mirror of
https://github.com/github/semantic.git
synced 2024-12-24 07:25:44 +03:00
650 lines
22 KiB
JSON
650 lines
22 KiB
JSON
[{
|
|
"testCaseDescription": "go-single-import-declarations-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"single-import-declarations.go": [
|
|
{
|
|
"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": {
|
|
"single-import-declarations.go": [
|
|
{
|
|
"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": [
|
|
"single-import-declarations.go"
|
|
],
|
|
"sha1": "596ea8156a361cb9f2a3b4896f372f421e6a867b",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "cdf821b5ccfc0bb00ec4fba4acd0fc10cacc6106"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-single-import-declarations-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"single-import-declarations.go": [
|
|
{
|
|
"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": {
|
|
"single-import-declarations.go": [
|
|
{
|
|
"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": [
|
|
"single-import-declarations.go"
|
|
],
|
|
"sha1": "cdf821b5ccfc0bb00ec4fba4acd0fc10cacc6106",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "e4f2ad7c3bd7ad684837d736c417de6188ead3ca"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-single-import-declarations-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"single-import-declarations.go": [
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"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": [
|
|
"single-import-declarations.go"
|
|
],
|
|
"sha1": "e4f2ad7c3bd7ad684837d736c417de6188ead3ca",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "1fe2c66067900f3747d8b8e93255d8bec1450732"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-single-import-declarations-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"single-import-declarations.go": [
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"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"
|
|
},
|
|
{
|
|
"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": [
|
|
"single-import-declarations.go"
|
|
],
|
|
"sha1": "1fe2c66067900f3747d8b8e93255d8bec1450732",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "e595c912824f8387b372dc2a8d7622cb5703438e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-single-import-declarations-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"single-import-declarations.go": [
|
|
{
|
|
"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": {
|
|
"single-import-declarations.go": [
|
|
{
|
|
"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": [
|
|
"single-import-declarations.go"
|
|
],
|
|
"sha1": "e595c912824f8387b372dc2a8d7622cb5703438e",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "7cfe15ed3239f5c19533d43334da6882fce5a125"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-single-import-declarations-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"single-import-declarations.go": [
|
|
{
|
|
"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": {
|
|
"single-import-declarations.go": [
|
|
{
|
|
"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": [
|
|
"single-import-declarations.go"
|
|
],
|
|
"sha1": "7cfe15ed3239f5c19533d43334da6882fce5a125",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "7247c947ed1ec87a24d49dd259de0b9a978ad009"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-single-import-declarations-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"single-import-declarations.go": [
|
|
{
|
|
"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": {
|
|
"single-import-declarations.go": [
|
|
{
|
|
"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": [
|
|
"single-import-declarations.go"
|
|
],
|
|
"sha1": "7247c947ed1ec87a24d49dd259de0b9a978ad009",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "ed40191731b770f11c10fbdf77dde030e5000d77"
|
|
}]
|