1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +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 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"function-literals.go"
2016-11-01 21:36:23 +03:00
],
2016-11-02 22:13:54 +03:00
"sha1": "983eb1450c5072209bad90940adbf92b571a9b68",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "4ea8aeddec41ed4b6b3253549caea239a0ffdeb3"
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 'variable' variable"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"function-literals.go"
2016-11-01 21:36:23 +03:00
],
2016-11-02 22:13:54 +03:00
"sha1": "4ea8aeddec41ed4b6b3253549caea239a0ffdeb3",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "5315f0c543b5c7f737e31f0929a8e4dccdfa5387"
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 statement"
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 statement"
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 statement"
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 statement"
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-02 22:13:54 +03:00
"sha1": "5315f0c543b5c7f737e31f0929a8e4dccdfa5387",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "53ddca1e353c55bf878ea4779d0cd1ef1a663875"
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 statement"
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 statement"
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 statement"
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 statement"
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-02 22:13:54 +03:00
"sha1": "53ddca1e353c55bf878ea4779d0cd1ef1a663875",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "780c6d2300b097caf66e08da85ef5881db8488ff"
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 'variable' variable"
},
{
"span": {
"delete": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Deleted the 'variable' variable"
},
{
"span": {
"insert": {
"start": [
6,
1
],
"end": [
8,
2
]
}
},
"summary": "Added the 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"function-literals.go"
2016-11-01 21:36:23 +03:00
],
2016-11-02 22:13:54 +03:00
"sha1": "780c6d2300b097caf66e08da85ef5881db8488ff",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "c0a486ce05740222a11ba3e2ba004ae8250195e7"
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 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"function-literals.go"
2016-11-01 21:36:23 +03:00
],
2016-11-02 22:13:54 +03:00
"sha1": "c0a486ce05740222a11ba3e2ba004ae8250195e7",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "40858bf6dee1200b6da2da6b63a315adc8f65d3b"
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 'variable' variable"
}
]
},
"errors": {}
},
"filePaths": [
2016-11-02 21:37:30 +03:00
"function-literals.go"
2016-11-01 21:36:23 +03:00
],
2016-11-02 22:13:54 +03:00
"sha1": "40858bf6dee1200b6da2da6b63a315adc8f65d3b",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 22:13:54 +03:00
"sha2": "100eca47d63aa29d3554dd95b7a8d4078de39b8a"
2016-11-01 21:36:23 +03:00
}]