mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
341 lines
10 KiB
JSON
341 lines
10 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-try-statement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"try-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ f; }' try statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"try-statement.js"
|
|
],
|
|
"sha1": "19169085f8677e51eb7378ac9436cdf404f24d7b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b3fce8ba07c727b6105897bd2d31cb2c268282a4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-try-statement-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"try-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ f; }' try statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ f; }' try statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"try-statement.js"
|
|
],
|
|
"sha1": "b3fce8ba07c727b6105897bd2d31cb2c268282a4",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3d4cedcba9a64c1282fa35c3d2f7badf93256056"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-try-statement-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"try-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'h' identifier with the 'g' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"end": [
|
|
1,
|
|
36
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"end": [
|
|
1,
|
|
36
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'g' identifier with the 'h' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"try-statement.js"
|
|
],
|
|
"sha1": "3d4cedcba9a64c1282fa35c3d2f7badf93256056",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3431cfc365a15df4a0b7b8224e370b4ec9aa4d13"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-try-statement-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"try-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
20
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'g' identifier with the 'h' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"end": [
|
|
1,
|
|
36
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"end": [
|
|
1,
|
|
36
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'h' identifier with the 'g' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"try-statement.js"
|
|
],
|
|
"sha1": "3431cfc365a15df4a0b7b8224e370b4ec9aa4d13",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e99773b4ee77024c93903cc386730f11e27cb1e6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-try-statement-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"try-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ f; }' try statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ f; }' try statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ f; }' try statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"try-statement.js"
|
|
],
|
|
"sha1": "e99773b4ee77024c93903cc386730f11e27cb1e6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e3faf15343b7148da5da0914b64b863bbb5775ae"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-try-statement-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"try-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ f; }' try statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"try-statement.js"
|
|
],
|
|
"sha1": "e3faf15343b7148da5da0914b64b863bbb5775ae",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "851e1479994c4e8fcf206343b7d9c48dfefa957b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-try-statement-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"try-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ f; }' try statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"try-statement.js"
|
|
],
|
|
"sha1": "851e1479994c4e8fcf206343b7d9c48dfefa957b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7bb6efe1fbac95e587746458bb80ee79366a08b7"
|
|
}]
|