mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
635 lines
20 KiB
JSON
635 lines
20 KiB
JSON
[{
|
|
"testCaseDescription": "go-variadic-function-declarations-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"variadic-function-declarations.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f1' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f2' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f3' function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"variadic-function-declarations.go"
|
|
],
|
|
"sha1": "f49684f58e6ec16d5644ed2baf457ad0f8a3b4f8",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "ba8932b1bd628b568cf044f5bba27f5289861073"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-variadic-function-declarations-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"variadic-function-declarations.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'g1' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'g2' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'g3' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f1' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f2' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'f3' function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"variadic-function-declarations.go"
|
|
],
|
|
"sha1": "ba8932b1bd628b568cf044f5bba27f5289861073",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "e6fd5487564f0592f52aeefae3491bbb6c42ee06"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-variadic-function-declarations-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"variadic-function-declarations.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
6
|
|
],
|
|
"end": [
|
|
3,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
6
|
|
],
|
|
"end": [
|
|
3,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'g1' identifier with the 'f1' identifier in the f1 function of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
6
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
6
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'g2' identifier with the 'f2' identifier in the f2 function of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
5,
|
|
6
|
|
],
|
|
"end": [
|
|
5,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
5,
|
|
6
|
|
],
|
|
"end": [
|
|
5,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'g3' identifier with the 'f3' identifier in the f3 function of the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"variadic-function-declarations.go"
|
|
],
|
|
"sha1": "e6fd5487564f0592f52aeefae3491bbb6c42ee06",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "16ef9d83b30eff9257aa536a9e0f19dee4cfec07"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-variadic-function-declarations-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"variadic-function-declarations.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
6
|
|
],
|
|
"end": [
|
|
3,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
6
|
|
],
|
|
"end": [
|
|
3,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'f1' identifier with the 'g1' identifier in the g1 function of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
4,
|
|
6
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
4,
|
|
6
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'f2' identifier with the 'g2' identifier in the g2 function of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
5,
|
|
6
|
|
],
|
|
"end": [
|
|
5,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
5,
|
|
6
|
|
],
|
|
"end": [
|
|
5,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'f3' identifier with the 'g3' identifier in the g3 function of the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"variadic-function-declarations.go"
|
|
],
|
|
"sha1": "16ef9d83b30eff9257aa536a9e0f19dee4cfec07",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "0ff69e987df271b04f50d6041465da56059bc56b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-variadic-function-declarations-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"variadic-function-declarations.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'g1' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'g2' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'g3' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f1' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f2' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f3' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'g1' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'g2' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'g3' function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"variadic-function-declarations.go"
|
|
],
|
|
"sha1": "0ff69e987df271b04f50d6041465da56059bc56b",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "5b03afd3c17da08cf550d4b99b366b6031ff8e8f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-variadic-function-declarations-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"variadic-function-declarations.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f1' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f2' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'f3' function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"variadic-function-declarations.go"
|
|
],
|
|
"sha1": "5b03afd3c17da08cf550d4b99b366b6031ff8e8f",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "da47cb10319a8671480263e716ea772e91e00501"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-variadic-function-declarations-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"variadic-function-declarations.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'g1' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'g2' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
23
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'g3' function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"variadic-function-declarations.go"
|
|
],
|
|
"sha1": "da47cb10319a8671480263e716ea772e91e00501",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "bf230b8ec48baa8d4c83a2d2dbbb2f1b53b9ddf4"
|
|
}]
|