mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
401 lines
13 KiB
JSON
401 lines
13 KiB
JSON
[{
|
|
"testCaseDescription": "go-array-with-implicit-length-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array-with-implicit-length.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a1' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array-with-implicit-length.go"
|
|
],
|
|
"sha1": "bc9dc8366f358b5b6796878719048d01b7bbbe45",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "617799105c2e669238369042ddc069175b57dfc6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-array-with-implicit-length-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array-with-implicit-length.go": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a1' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a1' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array-with-implicit-length.go"
|
|
],
|
|
"sha1": "617799105c2e669238369042ddc069175b57dfc6",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "ffeff7bc70b71ee37dccb58a757cdbc2dad83d5b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-array-with-implicit-length-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array-with-implicit-length.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
21
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
21
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '4' with '1' in the a1 variable of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
24
|
|
],
|
|
"end": [
|
|
3,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '2' in the a1 variable of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
23
|
|
],
|
|
"end": [
|
|
3,
|
|
24
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
27
|
|
],
|
|
"end": [
|
|
3,
|
|
28
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '5' with '3' in the a1 variable of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
25
|
|
],
|
|
"end": [
|
|
3,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '6' in the a1 variable of the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array-with-implicit-length.go"
|
|
],
|
|
"sha1": "ffeff7bc70b71ee37dccb58a757cdbc2dad83d5b",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "53233052045a5a0260c7bb05d47ef252dbcc34d3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-array-with-implicit-length-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array-with-implicit-length.go": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
21
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
21
|
|
],
|
|
"end": [
|
|
3,
|
|
22
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '1' with '4' in the a1 variable of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
23
|
|
],
|
|
"end": [
|
|
3,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '5' in the a1 variable of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
3,
|
|
24
|
|
],
|
|
"end": [
|
|
3,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
3,
|
|
25
|
|
],
|
|
"end": [
|
|
3,
|
|
26
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '2' with '6' in the a1 variable of the 'main' module"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
27
|
|
],
|
|
"end": [
|
|
3,
|
|
28
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '3' in the a1 variable of the 'main' module"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array-with-implicit-length.go"
|
|
],
|
|
"sha1": "53233052045a5a0260c7bb05d47ef252dbcc34d3",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "39cf432483155792901198b863d0a1b975454c59"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-array-with-implicit-length-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array-with-implicit-length.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a1' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a1' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a1' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array-with-implicit-length.go"
|
|
],
|
|
"sha1": "39cf432483155792901198b863d0a1b975454c59",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "9e65370b6f68975852cba2af6847fedbafefa016"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-array-with-implicit-length-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array-with-implicit-length.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a1' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array-with-implicit-length.go"
|
|
],
|
|
"sha1": "9e65370b6f68975852cba2af6847fedbafefa016",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "8c879595b309354fb1a48df67d05b99d542c7179"
|
|
}
|
|
,{
|
|
"testCaseDescription": "go-array-with-implicit-length-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array-with-implicit-length.go": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
27
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a1' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array-with-implicit-length.go"
|
|
],
|
|
"sha1": "8c879595b309354fb1a48df67d05b99d542c7179",
|
|
"gitDir": "test/corpus/repos/go",
|
|
"sha2": "26f5ca2ba1ebf6428f18e157bc2fef2c8fc6ab7a"
|
|
}]
|