mirror of
https://github.com/github/semantic.git
synced 2024-12-30 02:14:20 +03:00
263 lines
7.6 KiB
JSON
263 lines
7.6 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-array-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '[ \"item1\" ]' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.js"
|
|
],
|
|
"sha1": "2e011ecd3b15a3f3ed45a39f96dd8534d0714b88",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4e67638cf129c7270a16bf4e6b957be7daf08a96"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-array-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '[ \"item1\", \"item2\" ]' array"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '[ \"item1\" ]' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.js"
|
|
],
|
|
"sha1": "4e67638cf129c7270a16bf4e6b957be7daf08a96",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "08330a38c175dbf2a50bafd600950aaaf537dd6a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-array-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
12
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the \"item2\" string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.js"
|
|
],
|
|
"sha1": "08330a38c175dbf2a50bafd600950aaaf537dd6a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "baad9848daac3424442d4c96b551efecba2c9d74"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-array-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
12
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the \"item2\" string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.js"
|
|
],
|
|
"sha1": "baad9848daac3424442d4c96b551efecba2c9d74",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f6f9bb85c5217e476e0b659f08019de6a75e5d88"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-array-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '[ \"item1\", \"item2\" ]' array"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '[ \"item1\" ]' array"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '[ \"item1\", \"item2\" ]' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.js"
|
|
],
|
|
"sha1": "f6f9bb85c5217e476e0b659f08019de6a75e5d88",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e4a5c5332ee32b32d2bd96450afef7a10faf3d3f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-array-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '[ \"item1\" ]' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.js"
|
|
],
|
|
"sha1": "e4a5c5332ee32b32d2bd96450afef7a10faf3d3f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ce44d5b2951ac99732f60ad570e81aa50c15a54b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-array-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '[ \"item1\", \"item2\" ]' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.js"
|
|
],
|
|
"sha1": "ce44d5b2951ac99732f60ad570e81aa50c15a54b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "86bc815338f38ac0b5c22bc2d78e64d445a1ee9d"
|
|
}]
|