mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
455 lines
14 KiB
JSON
455 lines
14 KiB
JSON
[{
|
|
"testCaseDescription": "go-unary-expressions-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"unary-expressions.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'main' module with the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"unary-expressions.go"
|
|
],
|
|
"sha1": "098748014254a003521e71f8952be8c490f6d1ee",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "f3bea20828921432a81def7921374429177908fa"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-unary-expressions-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"unary-expressions.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
4
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'identifier()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
4
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'identifier()' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"unary-expressions.go"
|
|
],
|
|
"sha1": "f3bea20828921432a81def7921374429177908fa",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "d89533b319a44d151ba4a6cf4eae14e1b4e99543"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-unary-expressions-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"unary-expressions.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
4
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
4
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 'a' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'bar' identifier with the 'foo' identifier in the identifier() function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"unary-expressions.go"
|
|
],
|
|
"sha1": "d89533b319a44d151ba4a6cf4eae14e1b4e99543",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "098bfbb44d1541eb6d86de305d7404b67e124217"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-unary-expressions-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"unary-expressions.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
4
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
4
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' identifier with the 'b' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
2
|
|
],
|
|
"end": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'foo' identifier with the 'bar' identifier in the identifier() function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"unary-expressions.go"
|
|
],
|
|
"sha1": "098bfbb44d1541eb6d86de305d7404b67e124217",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "db0a787bc9df648bc404756f71ee85a280c911cd"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-unary-expressions-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"unary-expressions.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
4
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'identifier()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
4
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'identifier()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
4
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'identifier()' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"unary-expressions.go"
|
|
],
|
|
"sha1": "db0a787bc9df648bc404756f71ee85a280c911cd",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "4757a0ff98215daf22990d16ddfe9c8b9e863305"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-unary-expressions-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"unary-expressions.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
4
|
|
],
|
|
"end": [
|
|
3,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'identifier()' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"unary-expressions.go"
|
|
],
|
|
"sha1": "4757a0ff98215daf22990d16ddfe9c8b9e863305",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "fb6ec58dbce127e1dd9fa602e463d814db22fd64"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-unary-expressions-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"unary-expressions.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
1
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'main' module with the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"unary-expressions.go"
|
|
],
|
|
"sha1": "fb6ec58dbce127e1dd9fa602e463d814db22fd64",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "71f6b4a24319a344090651735d614135e9a708a4"
|
|
}]
|