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/var-declarations.json

401 lines
13 KiB
JSON
Raw Normal View History

2016-11-02 05:05:43 +03:00
[{
"testCaseDescription": "go-var-declarations-insert-test",
"expectedResult": {
"changes": {},
"errors": {
"var-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
13
]
}
},
"summary": "Added the 'var zero = 0' at line 3, column 1 - line 3, column 13"
}
]
}
},
"filePaths": [
"var-declarations.go"
],
2016-11-02 18:07:06 +03:00
"sha1": "19bdc3165d12d0552f650a7de287e8b34d5683f2",
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "8730812ed6347a52c20e5a5089d405a4e577fa1e"
2016-11-02 05:05:43 +03:00
}
,{
"testCaseDescription": "go-var-declarations-replacement-insert-test",
"expectedResult": {
"changes": {},
"errors": {
"var-declarations.go": [
{
"span": {
"insert": {
"start": [
3,
1
],
"end": [
3,
20
]
}
},
"summary": "Added the 'var one, two = 1, 2' at line 3, column 1 - line 3, column 20"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
13
]
}
},
"summary": "Added the 'var zero = 0' at line 4, column 1 - line 4, column 13"
}
]
}
},
"filePaths": [
"var-declarations.go"
],
2016-11-02 18:07:06 +03:00
"sha1": "8730812ed6347a52c20e5a5089d405a4e577fa1e",
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "f646b63efb077bc647a5e7e8bb321c62bc16ddb2"
2016-11-02 05:05:43 +03:00
}
,{
"testCaseDescription": "go-var-declarations-delete-insert-test",
"expectedResult": {
"changes": {
"var-declarations.go": [
{
"span": {
"replace": [
{
"start": [
3,
5
],
"end": [
3,
8
]
},
{
"start": [
3,
5
],
"end": [
3,
9
]
}
]
},
"summary": "Replaced the 'one' identifier with the 'zero' identifier"
},
{
"span": {
"delete": {
"start": [
3,
10
],
"end": [
3,
13
]
}
},
"summary": "Deleted the 'two' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
16
],
"end": [
3,
17
]
},
{
"start": [
3,
12
],
"end": [
3,
13
]
}
]
},
"summary": "Replaced '1' with '0'"
},
{
"span": {
"delete": {
"start": [
3,
19
],
"end": [
3,
20
]
}
},
"summary": "Deleted '2'"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations.go"
],
2016-11-02 18:07:06 +03:00
"sha1": "f646b63efb077bc647a5e7e8bb321c62bc16ddb2",
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "13a52b0cd36015e0a1e08a25e1563814559351d9"
2016-11-02 05:05:43 +03:00
}
,{
"testCaseDescription": "go-var-declarations-replacement-test",
"expectedResult": {
"changes": {
"var-declarations.go": [
{
"span": {
"replace": [
{
"start": [
3,
5
],
"end": [
3,
9
]
},
{
"start": [
3,
5
],
"end": [
3,
8
]
}
]
},
"summary": "Replaced the 'zero' identifier with the 'one' identifier"
},
{
"span": {
"insert": {
"start": [
3,
10
],
"end": [
3,
13
]
}
},
"summary": "Added the 'two' identifier"
},
{
"span": {
"replace": [
{
"start": [
3,
12
],
"end": [
3,
13
]
},
{
"start": [
3,
16
],
"end": [
3,
17
]
}
]
},
"summary": "Replaced '0' with '1'"
},
{
"span": {
"insert": {
"start": [
3,
19
],
"end": [
3,
20
]
}
},
"summary": "Added '2'"
}
]
},
"errors": {}
},
"filePaths": [
"var-declarations.go"
],
2016-11-02 18:07:06 +03:00
"sha1": "13a52b0cd36015e0a1e08a25e1563814559351d9",
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "6dd9800b518fb59ac2e155c649f46b962f0dbbfd"
2016-11-02 05:05:43 +03:00
}
,{
"testCaseDescription": "go-var-declarations-delete-replacement-test",
"expectedResult": {
"changes": {},
"errors": {
"var-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
20
]
}
},
"summary": "Deleted the 'var one, two = 1, 2' at line 3, column 1 - line 3, column 20"
},
{
"span": {
"delete": {
"start": [
4,
1
],
"end": [
4,
13
]
}
},
"summary": "Deleted the 'var zero = 0' at line 4, column 1 - line 4, column 13"
},
{
"span": {
"insert": {
"start": [
4,
1
],
"end": [
4,
20
]
}
},
"summary": "Added the 'var one, two = 1, 2' at line 4, column 1 - line 4, column 20"
}
]
}
},
"filePaths": [
"var-declarations.go"
],
2016-11-02 18:07:06 +03:00
"sha1": "6dd9800b518fb59ac2e155c649f46b962f0dbbfd",
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "726f052d1c6b3e896dcd81a8f0d0e094950ed35c"
2016-11-02 05:05:43 +03:00
}
,{
"testCaseDescription": "go-var-declarations-delete-test",
"expectedResult": {
"changes": {},
"errors": {
"var-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
13
]
}
},
"summary": "Deleted the 'var zero = 0' at line 3, column 1 - line 3, column 13"
}
]
}
},
"filePaths": [
"var-declarations.go"
],
2016-11-02 18:07:06 +03:00
"sha1": "726f052d1c6b3e896dcd81a8f0d0e094950ed35c",
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "565e1fdc0cc5ee7d44fef03f34bc843a950f3d75"
2016-11-02 05:05:43 +03:00
}
,{
"testCaseDescription": "go-var-declarations-delete-rest-test",
"expectedResult": {
"changes": {},
"errors": {
"var-declarations.go": [
{
"span": {
"delete": {
"start": [
3,
1
],
"end": [
3,
20
]
}
},
"summary": "Deleted the 'var one, two = 1, 2' at line 3, column 1 - line 3, column 20"
}
]
}
},
"filePaths": [
"var-declarations.go"
],
2016-11-02 18:07:06 +03:00
"sha1": "565e1fdc0cc5ee7d44fef03f34bc843a950f3d75",
2016-11-02 05:05:43 +03:00
"gitDir": "test/corpus/repos/go",
2016-11-02 18:07:06 +03:00
"sha2": "567ea1f4317f1c40f6132f429590c78238313778"
2016-11-02 05:05:43 +03:00
}]