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

449 lines
15 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 'const s1 = func(s string) (int, int) {\nreturn 1, 2\n}' 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
],
"sha1": "981e8897dfad97ce02faaf965f3bdb5e4843be21",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "efa00b7b16e53f8ba37503304db92d9a31a8f4ae"
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 'const s1 = func(b int) (string, string) {\nreturn 1, 2\n}' variable"
2016-11-01 21:36:23 +03:00
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'const s1 = func(s string) (int, int) {\nreturn 1, 2\n}' 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
],
"sha1": "efa00b7b16e53f8ba37503304db92d9a31a8f4ae",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "23a734ac6cf652e91374d4c3bf7f3cef9d484751"
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 const s1 = func(s string) (int, int) {\nreturn 1, 2\n} 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 const s1 = func(s string) (int, int) {\nreturn 1, 2\n} 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,
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"
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 const s1 = func(s string) (int, int) {\nreturn 1, 2\n} 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
],
"sha1": "23a734ac6cf652e91374d4c3bf7f3cef9d484751",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "b4c16bb2743eb368f3382b65994ad7fdef7ffbf2"
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 const s1 = func(b int) (string, string) {\nreturn 1, 2\n} 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 const s1 = func(b int) (string, string) {\nreturn 1, 2\n} 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,
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"
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 const s1 = func(b int) (string, string) {\nreturn 1, 2\n} 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
],
"sha1": "b4c16bb2743eb368f3382b65994ad7fdef7ffbf2",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "cbc1bff0282e97f99c8d5dd0dc02641d5011e11b"
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 'const s1 = func(b int) (string, string) {\nreturn 1, 2\n}' variable"
2016-11-01 21:36:23 +03:00
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Deleted the 'const s1 = func(s string) (int, int) {\nreturn 1, 2\n}' variable"
2016-11-01 21:36:23 +03:00
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'const s1 = func(b int) (string, string) {\nreturn 1, 2\n}' 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
],
"sha1": "cbc1bff0282e97f99c8d5dd0dc02641d5011e11b",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "35d96e82d28559a6bd80450c492a74941dd65e95"
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 'const s1 = func(s string) (int, int) {\nreturn 1, 2\n}' 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
],
"sha1": "35d96e82d28559a6bd80450c492a74941dd65e95",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "6eef58c074db1cbfa9777aeec085c159091ddb27"
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 'const s1 = func(b int) (string, string) {\nreturn 1, 2\n}' 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
],
"sha1": "6eef58c074db1cbfa9777aeec085c159091ddb27",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
"sha2": "6441c54b049af06ea5b207347e8f2dcd7f2d49ac"
2016-11-01 21:36:23 +03:00
}]