mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +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": "86c7257a797809a91b70c7762b2747d9df1884c8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ab7db7a02a27925161e4363033c29e16619409e8"
|
|
}
|
|
,{
|
|
"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": "ab7db7a02a27925161e4363033c29e16619409e8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1d8da49487d3fe7d15f54a2523adf64aaed0b3ff"
|
|
}
|
|
,{
|
|
"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": "1d8da49487d3fe7d15f54a2523adf64aaed0b3ff",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1002b843b25db730035b69a5ff4d59a06c9c9142"
|
|
}
|
|
,{
|
|
"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": "1002b843b25db730035b69a5ff4d59a06c9c9142",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8e2bb26941fb12dacfe99991af6a42e7f95ecaf2"
|
|
}
|
|
,{
|
|
"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": "8e2bb26941fb12dacfe99991af6a42e7f95ecaf2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1e59faf13834ab1d6ad04a6cf59b3e362063ae35"
|
|
}
|
|
,{
|
|
"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": "1e59faf13834ab1d6ad04a6cf59b3e362063ae35",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "95a410714747a5327701b8584d3ad85127ca0705"
|
|
}
|
|
,{
|
|
"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": "95a410714747a5327701b8584d3ad85127ca0705",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "464d43e2c288ee6bd17e3396850befa470fd4b07"
|
|
}]
|