mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +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": "9ccab273233837d842e68ec909416aab24ff359a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b653c66def8445f3ba4880fee2c049196d273774"
|
|
}
|
|
,{
|
|
"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": "b653c66def8445f3ba4880fee2c049196d273774",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c055d2c11306c9f9cbb2ed0d9f0b638b953f7b4a"
|
|
}
|
|
,{
|
|
"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": "c055d2c11306c9f9cbb2ed0d9f0b638b953f7b4a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "074894088cf9d55ae3bcdbb3a8e4270b8d2a0c26"
|
|
}
|
|
,{
|
|
"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": "074894088cf9d55ae3bcdbb3a8e4270b8d2a0c26",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7e646e80e9fabf33c78eca4122ac60e146b52423"
|
|
}
|
|
,{
|
|
"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": "7e646e80e9fabf33c78eca4122ac60e146b52423",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c61cc49cb2088ca7e12614a4b31e181f5a0e97d6"
|
|
}
|
|
,{
|
|
"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": "c61cc49cb2088ca7e12614a4b31e181f5a0e97d6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9601453a391957f917ee112f1e6abce225b21bac"
|
|
}
|
|
,{
|
|
"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": "9601453a391957f917ee112f1e6abce225b21bac",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e1f7c5a495d4e15d24ac325f6dec565f21f021e8"
|
|
}]
|