1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/try-statement.json

369 lines
12 KiB
JSON

[{
"testCaseDescription": "javascript-try-statement-insert-test",
"expectedResult": {
"changes": {
"try-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "try-statement.js",
"end": [
1,
39
]
}
},
"summary": "Added the '{ f; }' try statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"try-statement.js"
],
"sha1": "5886a80268586c2725f1f8be03d2dea099ba0bd2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d11694b9b5ba9a379cc650e52b21506d9f9aa3ba"
}
,{
"testCaseDescription": "javascript-try-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"try-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "try-statement.js",
"end": [
1,
39
]
}
},
"summary": "Added the '{ f; }' try statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "try-statement.js",
"end": [
2,
39
]
}
},
"summary": "Added the '{ f; }' try statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"try-statement.js"
],
"sha1": "d11694b9b5ba9a379cc650e52b21506d9f9aa3ba",
"gitDir": "test/corpus/repos/javascript",
"sha2": "82c1948da9d8ea2646160c6264953c6ab2ae0b41"
}
,{
"testCaseDescription": "javascript-try-statement-delete-insert-test",
"expectedResult": {
"changes": {
"try-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"filepath": "try-statement.js",
"end": [
1,
21
]
},
{
"start": [
1,
20
],
"filepath": "try-statement.js",
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'h' identifier with the 'g' identifier",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
35
],
"filepath": "try-statement.js",
"end": [
1,
36
]
},
{
"start": [
1,
35
],
"filepath": "try-statement.js",
"end": [
1,
36
]
}
]
},
"summary": "Replaced the 'g' identifier with the 'h' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"try-statement.js"
],
"sha1": "82c1948da9d8ea2646160c6264953c6ab2ae0b41",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6ad2a6b1f0bbe574a911599cf820f54b7e1390d9"
}
,{
"testCaseDescription": "javascript-try-statement-replacement-test",
"expectedResult": {
"changes": {
"try-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
20
],
"filepath": "try-statement.js",
"end": [
1,
21
]
},
{
"start": [
1,
20
],
"filepath": "try-statement.js",
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'g' identifier with the 'h' identifier",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
35
],
"filepath": "try-statement.js",
"end": [
1,
36
]
},
{
"start": [
1,
35
],
"filepath": "try-statement.js",
"end": [
1,
36
]
}
]
},
"summary": "Replaced the 'h' identifier with the 'g' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"try-statement.js"
],
"sha1": "6ad2a6b1f0bbe574a911599cf820f54b7e1390d9",
"gitDir": "test/corpus/repos/javascript",
"sha2": "79cd78e2b7db8045abfbeac9a122ce59a20fc740"
}
,{
"testCaseDescription": "javascript-try-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"try-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "try-statement.js",
"end": [
1,
39
]
}
},
"summary": "Deleted the '{ f; }' try statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"filepath": "try-statement.js",
"end": [
2,
39
]
}
},
"summary": "Deleted the '{ f; }' try statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "try-statement.js",
"end": [
2,
39
]
}
},
"summary": "Added the '{ f; }' try statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"try-statement.js"
],
"sha1": "79cd78e2b7db8045abfbeac9a122ce59a20fc740",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c208bceaa74698f28aeaebc6b0bf11b95c3e8454"
}
,{
"testCaseDescription": "javascript-try-statement-delete-test",
"expectedResult": {
"changes": {
"try-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "try-statement.js",
"end": [
1,
39
]
}
},
"summary": "Deleted the '{ f; }' try statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"try-statement.js"
],
"sha1": "c208bceaa74698f28aeaebc6b0bf11b95c3e8454",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ea97f7b13e155e96e812b3555a3b553ef47a10fe"
}
,{
"testCaseDescription": "javascript-try-statement-delete-rest-test",
"expectedResult": {
"changes": {
"try-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "try-statement.js",
"end": [
1,
39
]
}
},
"summary": "Deleted the '{ f; }' try statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"try-statement.js"
],
"sha1": "ea97f7b13e155e96e812b3555a3b553ef47a10fe",
"gitDir": "test/corpus/repos/javascript",
"sha2": "058fa89622b13938f1d49514c08fc3297f2654b2"
}]