1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/go/variadic-function-declarations.json
2016-11-02 16:29:27 -04:00

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": "afa8798648594d61467344af22ead1a189f087f3",
"gitDir": "test/corpus/repos/go",
"sha2": "b23afa213aa907d3d99414e585010415b2a0c0ff"
}
,{
"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": "b23afa213aa907d3d99414e585010415b2a0c0ff",
"gitDir": "test/corpus/repos/go",
"sha2": "553b50adbe280cf3eb253b04b1c460aa6c381b30"
}
,{
"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": "553b50adbe280cf3eb253b04b1c460aa6c381b30",
"gitDir": "test/corpus/repos/go",
"sha2": "0f5caea50be6b019a596e135c8ca84dd936731b9"
}
,{
"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": "0f5caea50be6b019a596e135c8ca84dd936731b9",
"gitDir": "test/corpus/repos/go",
"sha2": "edd2ea4b8b0ea1756709496c9d4fa7c22c7df711"
}
,{
"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": "edd2ea4b8b0ea1756709496c9d4fa7c22c7df711",
"gitDir": "test/corpus/repos/go",
"sha2": "9b79a9367f0154a924e098af0cdd9bc7167860d9"
}
,{
"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": "9b79a9367f0154a924e098af0cdd9bc7167860d9",
"gitDir": "test/corpus/repos/go",
"sha2": "5121cfeeab52d037fa034fa4d82766e5e531683f"
}
,{
"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": "5121cfeeab52d037fa034fa4d82766e5e531683f",
"gitDir": "test/corpus/repos/go",
"sha2": "ed9421374e235eb74e3ab2b4f3783c7e0f465576"
}]