1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/try-statement.json
2016-10-14 12:19:31 -04:00

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": "b6d715f627e00f2f795cec2fe939da220b307e19",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2708ad9672beb7a27b69762c577cfb1ac9174d34"
}
,{
"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": "2708ad9672beb7a27b69762c577cfb1ac9174d34",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a4bcde1e0bffdd8ee0918bf4520c914625a0385b"
}
,{
"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": "a4bcde1e0bffdd8ee0918bf4520c914625a0385b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e48d8c4abb63d65fd1bc6f577cdd7c3c92c35a28"
}
,{
"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": "e48d8c4abb63d65fd1bc6f577cdd7c3c92c35a28",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bd9e37ae9af456aefb9f861a898153dbf49764bd"
}
,{
"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": "bd9e37ae9af456aefb9f861a898153dbf49764bd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "427b5dd3a923a16c061a0cf8b4a28ccefe0aa765"
}
,{
"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": "427b5dd3a923a16c061a0cf8b4a28ccefe0aa765",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8c3ecb08eba76016295bcc8ee21043ead12855bd"
}
,{
"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": "8c3ecb08eba76016295bcc8ee21043ead12855bd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "33cf0b65a7774ad67cdfb257650b457f9b26ab38"
}]