mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
449 lines
15 KiB
JSON
449 lines
15 KiB
JSON
[{
|
|
"testCaseDescription": "go-function-literals-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-literals.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'const s1 = func(s string) (int, int) {\nreturn 1, 2\n}' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-literals.go"
|
|
],
|
|
"sha1": "981e8897dfad97ce02faaf965f3bdb5e4843be21",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "efa00b7b16e53f8ba37503304db92d9a31a8f4ae"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-function-literals-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-literals.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'const s1 = func(b int) (string, string) {\nreturn 1, 2\n}' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'const s1 = func(s string) (int, int) {\nreturn 1, 2\n}' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-literals.go"
|
|
],
|
|
"sha1": "efa00b7b16e53f8ba37503304db92d9a31a8f4ae",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "23a734ac6cf652e91374d4c3bf7f3cef9d484751"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-function-literals-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-literals.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
17
|
|
],
|
|
"end": [
|
|
3,
|
|
18
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
17
|
|
],
|
|
"end": [
|
|
3,
|
|
18
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 's' identifier in the const s1 = func(s string) (int, int) {\nreturn 1, 2\n} variable of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
19
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
19
|
|
],
|
|
"end": [
|
|
3,
|
|
25
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'int' identifier with the 'string' identifier in the const s1 = func(s string) (int, int) {\nreturn 1, 2\n} variable of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
17
|
|
],
|
|
"end": [
|
|
3,
|
|
18
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
17
|
|
],
|
|
"end": [
|
|
3,
|
|
18
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'b' identifier with the 's' identifier in the const s1 = func(s string) (int, int) {\nreturn 1, 2\n} variable of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
19
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
19
|
|
],
|
|
"end": [
|
|
3,
|
|
25
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'int' identifier with the 'string' identifier in the const s1 = func(s string) (int, int) {\nreturn 1, 2\n} variable of the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-literals.go"
|
|
],
|
|
"sha1": "23a734ac6cf652e91374d4c3bf7f3cef9d484751",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "b4c16bb2743eb368f3382b65994ad7fdef7ffbf2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-function-literals-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-literals.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
17
|
|
],
|
|
"end": [
|
|
3,
|
|
18
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
17
|
|
],
|
|
"end": [
|
|
3,
|
|
18
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 's' identifier with the 'b' identifier in the const s1 = func(b int) (string, string) {\nreturn 1, 2\n} variable of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
19
|
|
],
|
|
"end": [
|
|
3,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
19
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'string' identifier with the 'int' identifier in the const s1 = func(b int) (string, string) {\nreturn 1, 2\n} variable of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
17
|
|
],
|
|
"end": [
|
|
3,
|
|
18
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
17
|
|
],
|
|
"end": [
|
|
3,
|
|
18
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 's' identifier with the 'b' identifier in the const s1 = func(b int) (string, string) {\nreturn 1, 2\n} variable of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
19
|
|
],
|
|
"end": [
|
|
3,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
19
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'string' identifier with the 'int' identifier in the const s1 = func(b int) (string, string) {\nreturn 1, 2\n} variable of the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-literals.go"
|
|
],
|
|
"sha1": "b4c16bb2743eb368f3382b65994ad7fdef7ffbf2",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "cbc1bff0282e97f99c8d5dd0dc02641d5011e11b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-function-literals-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'const s1 = func(b int) (string, string) {\nreturn 1, 2\n}' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'const s1 = func(s string) (int, int) {\nreturn 1, 2\n}' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'const s1 = func(b int) (string, string) {\nreturn 1, 2\n}' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-literals.go"
|
|
],
|
|
"sha1": "cbc1bff0282e97f99c8d5dd0dc02641d5011e11b",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "35d96e82d28559a6bd80450c492a74941dd65e95"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-function-literals-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'const s1 = func(s string) (int, int) {\nreturn 1, 2\n}' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-literals.go"
|
|
],
|
|
"sha1": "35d96e82d28559a6bd80450c492a74941dd65e95",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "6eef58c074db1cbfa9777aeec085c159091ddb27"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-function-literals-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function-literals.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'const s1 = func(b int) (string, string) {\nreturn 1, 2\n}' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function-literals.go"
|
|
],
|
|
"sha1": "6eef58c074db1cbfa9777aeec085c159091ddb27",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "6441c54b049af06ea5b207347e8f2dcd7f2d49ac"
|
|
}]
|