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": "8f2c219185766a66b44d2eac044292096f5263b3",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "618294ceacee0c856ed8ad8b816565166553c01c"
|
|
}
|
|
,{
|
|
"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": "618294ceacee0c856ed8ad8b816565166553c01c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "bf5de213160082a27b841827b37d6b4266a16f6b"
|
|
}
|
|
,{
|
|
"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": "bf5de213160082a27b841827b37d6b4266a16f6b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "da7bc6268e785486c028ee68263b152eee39ebc9"
|
|
}
|
|
,{
|
|
"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": "da7bc6268e785486c028ee68263b152eee39ebc9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ee0e88c953b5a01bc2fc2b89b366e501e2d082ca"
|
|
}
|
|
,{
|
|
"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": "ee0e88c953b5a01bc2fc2b89b366e501e2d082ca",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "41d4678e13e0dab9e9c0d0f489d5aeffd1456bf6"
|
|
}
|
|
,{
|
|
"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": "41d4678e13e0dab9e9c0d0f489d5aeffd1456bf6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9c65911cfd83012b3359ccd119a219ac404a5297"
|
|
}
|
|
,{
|
|
"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": "9c65911cfd83012b3359ccd119a219ac404a5297",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "21cc7d73bcba6e59eea5aedefbe11366ea4b5a7d"
|
|
}]
|