1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
semantic/test/corpus/diff-summaries/javascript/array.json
2016-10-11 15:13:51 -04:00

273 lines
8.0 KiB
JSON

[{
"testCaseDescription": "javascript-array-insert-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
12
]
}
},
"summary": "Added the '[ \"item1\" ]' array",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"sha1": "2eae8fefa77d6a4d6f762811f764fb0194e0c694",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a0220a9f702e60c8fc2a51af41d6c44fb0caef87"
}
,{
"testCaseDescription": "javascript-array-replacement-insert-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Added the '[ \"item1\", \"item2\" ]' array",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
12
]
}
},
"summary": "Added the '[ \"item1\" ]' array",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"sha1": "a0220a9f702e60c8fc2a51af41d6c44fb0caef87",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4a15d2534dd78648fdb6d009ac7d300366a3fcd1"
}
,{
"testCaseDescription": "javascript-array-delete-insert-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"delete": {
"start": [
1,
12
],
"end": [
1,
19
]
}
},
"summary": "Deleted the \"item2\" string",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"sha1": "4a15d2534dd78648fdb6d009ac7d300366a3fcd1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d88be4ec5b1f423eb9e9f43d8bc330029c45d46e"
}
,{
"testCaseDescription": "javascript-array-replacement-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"insert": {
"start": [
1,
12
],
"end": [
1,
19
]
}
},
"summary": "Added the \"item2\" string",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"sha1": "d88be4ec5b1f423eb9e9f43d8bc330029c45d46e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b59e1420e44e05650233fd4d4d8de7d800209108"
}
,{
"testCaseDescription": "javascript-array-delete-replacement-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Deleted the '[ \"item1\", \"item2\" ]' array",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
12
]
}
},
"summary": "Deleted the '[ \"item1\" ]' array",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
21
]
}
},
"summary": "Added the '[ \"item1\", \"item2\" ]' array",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"sha1": "b59e1420e44e05650233fd4d4d8de7d800209108",
"gitDir": "test/corpus/repos/javascript",
"sha2": "793c9c44d26a5d2cf79c81a10ac7efdba52feb3a"
}
,{
"testCaseDescription": "javascript-array-delete-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
12
]
}
},
"summary": "Deleted the '[ \"item1\" ]' array",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"sha1": "793c9c44d26a5d2cf79c81a10ac7efdba52feb3a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c618daa36f536027c9d7f6e46a90ec22076fdcbf"
}
,{
"testCaseDescription": "javascript-array-delete-rest-test",
"expectedResult": {
"changes": {
"array.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Deleted the '[ \"item1\", \"item2\" ]' array",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"array.js"
],
"sha1": "c618daa36f536027c9d7f6e46a90ec22076fdcbf",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1a2d64688174370f61c0962a2cd96be5f1758ccc"
}]