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/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-10 23:36:44 +03:00
"sha1": "feb6123e4d38848977a42544b3bae6334aecf1e0",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "14647fcfa4649e9784df604fefe4128a4af732e7"
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-10 23:36:44 +03:00
"sha1": "14647fcfa4649e9784df604fefe4128a4af732e7",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "089bc8da72a692d35ffacd1ecf61cb5558608ad6"
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-10 23:36:44 +03:00
"sha1": "089bc8da72a692d35ffacd1ecf61cb5558608ad6",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "fd04c7101ea4fada80892f6d8266453324fc8bf7"
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-10 23:36:44 +03:00
"sha1": "fd04c7101ea4fada80892f6d8266453324fc8bf7",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "3d746e3f13a4392548edef656eeb9f8e7fa46ad7"
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-10 23:36:44 +03:00
"sha1": "3d746e3f13a4392548edef656eeb9f8e7fa46ad7",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "49f2d11ce6eeb1be2843f138688487c077222380"
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-10 23:36:44 +03:00
"sha1": "49f2d11ce6eeb1be2843f138688487c077222380",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "3f3560e2bd7986b84d183880a6709ba0d301722d"
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-10 23:36:44 +03:00
"sha1": "3f3560e2bd7986b84d183880a6709ba0d301722d",
2016-11-01 21:36:23 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-10 23:36:44 +03:00
"sha2": "f99392e84d40bc621fdc924228e731d179062c0b"
2016-11-01 21:36:23 +03:00
}]