1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/go/variadic-function-declarations.json

635 lines
20 KiB
JSON
Raw Normal View History

2016-11-02 04:36:43 +03:00
[{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-variadic-function-declarations-insert-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"variadic-function-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
2016-11-02 21:37:30 +03:00
22
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'f1' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2016-11-02 21:37:30 +03:00
19
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'f2' function"
},
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
2016-11-02 21:37:30 +03:00
23
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'f3' function"
2016-11-02 04:36:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 04:36:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"variadic-function-declarations.go"
2016-11-02 04:36:43 +03:00
],
"sha1": "f49684f58e6ec16d5644ed2baf457ad0f8a3b4f8",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "ba8932b1bd628b568cf044f5bba27f5289861073"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-variadic-function-declarations-replacement-insert-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"variadic-function-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
2016-11-02 21:37:30 +03:00
22
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'g1' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
2016-11-02 21:37:30 +03:00
19
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'g2' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
5,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
5,
23
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'g3' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
6,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
6,
22
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'f1' function"
},
2016-11-02 04:36:43 +03:00
{
"span": {
"insert": {
"start": [
2016-11-02 21:37:30 +03:00
7,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
19
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'f2' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
2016-11-02 21:37:30 +03:00
23
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'f3' function"
2016-11-02 04:36:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 04:36:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"variadic-function-declarations.go"
2016-11-02 04:36:43 +03:00
],
"sha1": "ba8932b1bd628b568cf044f5bba27f5289861073",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "e6fd5487564f0592f52aeefae3491bbb6c42ee06"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-variadic-function-declarations-delete-insert-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"variadic-function-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"replace": [
{
"start": [
3,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
3,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
3,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
3,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
}
]
},
"summary": "Replaced the 'g1' identifier with the 'f1' identifier in the f1 function of the 'main' module"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
4,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
4,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
4,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
4,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
}
]
},
"summary": "Replaced the 'g2' identifier with the 'f2' identifier in the f2 function of the 'main' module"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
5,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
5,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
5,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
5,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
}
]
},
"summary": "Replaced the 'g3' identifier with the 'f3' identifier in the f3 function of the 'main' module"
2016-11-02 04:36:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"variadic-function-declarations.go"
2016-11-02 04:36:43 +03:00
],
"sha1": "e6fd5487564f0592f52aeefae3491bbb6c42ee06",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "16ef9d83b30eff9257aa536a9e0f19dee4cfec07"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-variadic-function-declarations-replacement-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"variadic-function-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"replace": [
{
"start": [
3,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
3,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
3,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
3,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
}
]
},
"summary": "Replaced the 'f1' identifier with the 'g1' identifier in the g1 function of the 'main' module"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
4,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
4,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
4,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
4,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
}
]
},
"summary": "Replaced the 'f2' identifier with the 'g2' identifier in the g2 function of the 'main' module"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"replace": [
{
"start": [
5,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
5,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
},
{
"start": [
5,
2016-11-02 21:37:30 +03:00
6
2016-11-02 04:36:43 +03:00
],
"end": [
5,
2016-11-02 21:37:30 +03:00
8
2016-11-02 04:36:43 +03:00
]
}
]
},
"summary": "Replaced the 'f3' identifier with the 'g3' identifier in the g3 function of the 'main' module"
2016-11-02 04:36:43 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"variadic-function-declarations.go"
2016-11-02 04:36:43 +03:00
],
"sha1": "16ef9d83b30eff9257aa536a9e0f19dee4cfec07",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "0ff69e987df271b04f50d6041465da56059bc56b"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-variadic-function-declarations-delete-replacement-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"variadic-function-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2016-11-02 21:37:30 +03:00
22
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'g1' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2016-11-02 21:37:30 +03:00
19
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'g2' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-02 21:37:30 +03:00
5,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
5,
23
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'g3' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
2016-11-02 21:37:30 +03:00
6,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
6,
22
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'f1' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"delete": {
2016-11-02 04:36:43 +03:00
"start": [
2016-11-02 21:37:30 +03:00
7,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
19
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'f2' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"delete": {
2016-11-02 04:36:43 +03:00
"start": [
2016-11-02 21:37:30 +03:00
8,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
8,
23
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'f3' function"
},
2016-11-02 04:36:43 +03:00
{
"span": {
2016-11-02 21:37:30 +03:00
"insert": {
2016-11-02 04:36:43 +03:00
"start": [
2016-11-02 21:37:30 +03:00
6,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
6,
22
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'g1' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
2016-11-02 21:37:30 +03:00
"insert": {
2016-11-02 04:36:43 +03:00
"start": [
2016-11-02 21:37:30 +03:00
7,
2016-11-02 04:36:43 +03:00
1
],
"end": [
2016-11-02 21:37:30 +03:00
7,
19
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'g2' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"insert": {
"start": [
8,
1
],
"end": [
8,
2016-11-02 21:37:30 +03:00
23
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Added the 'g3' function"
2016-11-02 04:36:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 04:36:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"variadic-function-declarations.go"
2016-11-02 04:36:43 +03:00
],
"sha1": "0ff69e987df271b04f50d6041465da56059bc56b",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "5b03afd3c17da08cf550d4b99b366b6031ff8e8f"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-variadic-function-declarations-delete-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"variadic-function-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2016-11-02 21:37:30 +03:00
22
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'f1' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2016-11-02 21:37:30 +03:00
19
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'f2' function"
},
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
2016-11-02 21:37:30 +03:00
23
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'f3' function"
2016-11-02 04:36:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 04:36:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"variadic-function-declarations.go"
2016-11-02 04:36:43 +03:00
],
"sha1": "5b03afd3c17da08cf550d4b99b366b6031ff8e8f",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "da47cb10319a8671480263e716ea772e91e00501"
2016-11-02 04:36:43 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-variadic-function-declarations-delete-rest-test",
2016-11-02 04:36:43 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"variadic-function-declarations.go": [
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
2016-11-02 21:37:30 +03:00
22
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'g1' function"
2016-11-02 04:36:43 +03:00
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
2016-11-02 21:37:30 +03:00
19
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'g2' function"
},
2016-11-02 04:36:43 +03:00
{
"span": {
"delete": {
"start": [
5,
1
],
"end": [
5,
2016-11-02 21:37:30 +03:00
23
2016-11-02 04:36:43 +03:00
]
}
},
2016-11-02 21:37:30 +03:00
"summary": "Deleted the 'g3' function"
2016-11-02 04:36:43 +03:00
}
]
2016-11-02 21:37:30 +03:00
},
"errors": {}
2016-11-02 04:36:43 +03:00
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"variadic-function-declarations.go"
2016-11-02 04:36:43 +03:00
],
"sha1": "da47cb10319a8671480263e716ea772e91e00501",
2016-11-02 04:36:43 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "bf230b8ec48baa8d4c83a2d2dbbb2f1b53b9ddf4"
2016-11-02 04:36:43 +03:00
}]