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/function-literals.json

341 lines
11 KiB
JSON
Raw Normal View History

2016-11-01 21:36:23 +03:00
[{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-function-literals-insert-test",
2016-11-01 21:36:23 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"function-literals.go": [
2016-11-01 21:36:23 +03:00
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 's1' variable"
2016-11-01 21:36:23 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"function-literals.go"
2016-11-01 21:36:23 +03:00
],
2016-11-03 01:46:48 +03:00
"sha1": "5c0e4c8f1983443736a0dbc65f3aea9e0fc0db32",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "113eb77acc43fd6bf17dc02c42be247b32a918bc"
2016-11-01 21:36:23 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-function-literals-replacement-insert-test",
2016-11-01 21:36:23 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"function-literals.go": [
2016-11-01 21:36:23 +03:00
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Added the 's1' variable"
2016-11-01 21:36:23 +03:00
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 's1' variable"
2016-11-01 21:36:23 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"function-literals.go"
2016-11-01 21:36:23 +03:00
],
2016-11-03 01:46:48 +03:00
"sha1": "113eb77acc43fd6bf17dc02c42be247b32a918bc",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "ee180a6b01422b5fa63eec7d878272685bc3e715"
2016-11-01 21:36:23 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-function-literals-delete-insert-test",
2016-11-01 21:36:23 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"function-literals.go": [
2016-11-01 21:36:23 +03:00
{
"span": {
2016-11-01 23:24:34 +03:00
"replace": [
{
"start": [
3,
17
],
"end": [
3,
18
]
},
{
"start": [
3,
17
],
"end": [
3,
18
]
}
]
},
"summary": "Replaced the 'b' identifier with the 's' identifier in the s1 variable of the 'main' module"
2016-11-01 21:36:23 +03:00
},
{
"span": {
2016-11-01 23:24:34 +03:00
"replace": [
{
"start": [
3,
19
],
"end": [
3,
22
]
},
{
"start": [
3,
19
],
"end": [
3,
25
]
}
]
},
"summary": "Replaced the 'int' identifier with the 'string' identifier in the s1 variable of the 'main' module"
2016-11-01 21:36:23 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"function-literals.go"
2016-11-01 21:36:23 +03:00
],
2016-11-03 01:46:48 +03:00
"sha1": "ee180a6b01422b5fa63eec7d878272685bc3e715",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "10b852c2ff668486c096cb655dcda84cd48570f7"
2016-11-01 21:36:23 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-function-literals-replacement-test",
2016-11-01 21:36:23 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"function-literals.go": [
2016-11-01 21:36:23 +03:00
{
"span": {
2016-11-01 23:24:34 +03:00
"replace": [
{
"start": [
3,
17
],
"end": [
3,
18
]
},
{
"start": [
3,
17
],
"end": [
3,
18
]
}
]
},
"summary": "Replaced the 's' identifier with the 'b' identifier in the s1 variable of the 'main' module"
2016-11-01 21:36:23 +03:00
},
{
"span": {
2016-11-01 23:24:34 +03:00
"replace": [
{
"start": [
3,
19
],
"end": [
3,
25
]
},
{
"start": [
3,
19
],
"end": [
3,
22
]
}
]
},
"summary": "Replaced the 'string' identifier with the 'int' identifier in the s1 variable of the 'main' module"
2016-11-01 21:36:23 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"function-literals.go"
2016-11-01 21:36:23 +03:00
],
2016-11-03 01:46:48 +03:00
"sha1": "10b852c2ff668486c096cb655dcda84cd48570f7",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "2fbe789a751122af0bc192b48266184922307979"
2016-11-01 21:36:23 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-function-literals-delete-replacement-test",
2016-11-01 21:36:23 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"function-literals.go": [
2016-11-01 21:36:23 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 's1' variable"
2016-11-01 21:36:23 +03:00
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Deleted the 's1' variable"
2016-11-01 21:36:23 +03:00
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 's1' variable"
2016-11-01 21:36:23 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"function-literals.go"
2016-11-01 21:36:23 +03:00
],
2016-11-03 01:46:48 +03:00
"sha1": "2fbe789a751122af0bc192b48266184922307979",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "620aec2754ddb58b184f1fdaf410f7f9e2ce3832"
2016-11-01 21:36:23 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-function-literals-delete-test",
2016-11-01 21:36:23 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"function-literals.go": [
2016-11-01 21:36:23 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 's1' variable"
2016-11-01 21:36:23 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"function-literals.go"
2016-11-01 21:36:23 +03:00
],
2016-11-03 01:46:48 +03:00
"sha1": "620aec2754ddb58b184f1fdaf410f7f9e2ce3832",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "ee2d207d70cf2896e7a6668b72cb9d3676b819b3"
2016-11-01 21:36:23 +03:00
}
,{
2016-11-02 21:37:30 +03:00
"testCaseDescription": "go-function-literals-delete-rest-test",
2016-11-01 21:36:23 +03:00
"expectedResult": {
"changes": {
2016-11-02 21:37:30 +03:00
"function-literals.go": [
2016-11-01 21:36:23 +03:00
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted the 's1' variable"
2016-11-01 21:36:23 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"function-literals.go"
2016-11-01 21:36:23 +03:00
],
2016-11-03 01:46:48 +03:00
"sha1": "ee2d207d70cf2896e7a6668b72cb9d3676b819b3",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-03 01:46:48 +03:00
"sha2": "e9d34be5527b4b8e859d9b11482ca8089c433efc"
2016-11-01 21:36:23 +03:00
}]