1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +03:00
semantic/test/corpus/diff-summaries/javascript/delete-operator.json

309 lines
9.9 KiB
JSON

[{
"testCaseDescription": "javascript-delete-operator-insert-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "delete-operator.js",
"end": [
1,
21
]
}
},
"summary": "Added the 'delete thing['prop']' operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"sha1": "d7d8b169c8385f3a91f99dd299e5ebb566e5a346",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6c6e619841b05739ffd85569a1328aabe62f84a6"
}
,{
"testCaseDescription": "javascript-delete-operator-replacement-insert-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "delete-operator.js",
"end": [
1,
18
]
}
},
"summary": "Added the 'delete thing.prop' operator",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "delete-operator.js",
"end": [
2,
21
]
}
},
"summary": "Added the 'delete thing['prop']' operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"sha1": "6c6e619841b05739ffd85569a1328aabe62f84a6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b0ff0d9a3df842084c04a09dea21d8d18c70a35a"
}
,{
"testCaseDescription": "javascript-delete-operator-delete-insert-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"filepath": "delete-operator.js",
"end": [
1,
18
]
},
{
"start": [
1,
1
],
"filepath": "delete-operator.js",
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'delete thing.prop' operator with the 'delete thing['prop']' operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"sha1": "b0ff0d9a3df842084c04a09dea21d8d18c70a35a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "da51d558c50a3b77f771324583cc0d7550a8e515"
}
,{
"testCaseDescription": "javascript-delete-operator-replacement-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"filepath": "delete-operator.js",
"end": [
1,
21
]
},
{
"start": [
1,
1
],
"filepath": "delete-operator.js",
"end": [
1,
18
]
}
]
},
"summary": "Replaced the 'delete thing['prop']' operator with the 'delete thing.prop' operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"sha1": "da51d558c50a3b77f771324583cc0d7550a8e515",
"gitDir": "test/corpus/repos/javascript",
"sha2": "061a6799cac8f6e7d6daff84708dd2b9d2f1a124"
}
,{
"testCaseDescription": "javascript-delete-operator-delete-replacement-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "delete-operator.js",
"end": [
1,
18
]
}
},
"summary": "Deleted the 'delete thing.prop' operator",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"filepath": "delete-operator.js",
"end": [
2,
21
]
}
},
"summary": "Deleted the 'delete thing['prop']' operator",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "delete-operator.js",
"end": [
2,
18
]
}
},
"summary": "Added the 'delete thing.prop' operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"sha1": "061a6799cac8f6e7d6daff84708dd2b9d2f1a124",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b5fd60da6d762332b03e0d20e55f81cf4436ee5f"
}
,{
"testCaseDescription": "javascript-delete-operator-delete-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "delete-operator.js",
"end": [
1,
21
]
}
},
"summary": "Deleted the 'delete thing['prop']' operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"sha1": "b5fd60da6d762332b03e0d20e55f81cf4436ee5f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7fac635a01cb2cde4cf5830e93551808729258c8"
}
,{
"testCaseDescription": "javascript-delete-operator-delete-rest-test",
"expectedResult": {
"changes": {
"delete-operator.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "delete-operator.js",
"end": [
1,
18
]
}
},
"summary": "Deleted the 'delete thing.prop' operator",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"delete-operator.js"
],
"sha1": "7fac635a01cb2cde4cf5830e93551808729258c8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f6b6a39365ea495fba9ad72496f299b47250db15"
}]