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/try-statement.json
2016-10-11 11:26:57 -04:00

369 lines
12 KiB
JSON

[{
"testCaseDescription": "javascript-try-statement-insert-test",
"expectedResult": {
"changes": {
"try-statement.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "try-statement.js",
"end": [
1,
39
]
}
},
"summary": "Added the '{ f; }' try statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"try-statement.js"
],
"sha1": "eb8ac03b17e740cb895c1e398a23ece6b7108422",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5934d5c231a7d9ae7cbe9b332296d7b6d82b59df"
}
,{
"testCaseDescription": "javascript-try-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"try-statement.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "try-statement.js",
"end": [
1,
39
]
}
},
"summary": "Added the '{ f; }' try statement",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "try-statement.js",
"end": [
2,
39
]
}
},
"summary": "Added the '{ f; }' try statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"try-statement.js"
],
"sha1": "5934d5c231a7d9ae7cbe9b332296d7b6d82b59df",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f0ea450f12fa45c3ce41f2f8178719797116a3bb"
}
,{
"testCaseDescription": "javascript-try-statement-delete-insert-test",
"expectedResult": {
"changes": {
"try-statement.js": [
{
"span": {
"these": [
{
"start": [
1,
20
],
"name": "try-statement.js",
"end": [
1,
21
]
},
{
"start": [
1,
20
],
"name": "try-statement.js",
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'h' identifier with the 'g' identifier",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
35
],
"name": "try-statement.js",
"end": [
1,
36
]
},
{
"start": [
1,
35
],
"name": "try-statement.js",
"end": [
1,
36
]
}
]
},
"summary": "Replaced the 'g' identifier with the 'h' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"try-statement.js"
],
"sha1": "f0ea450f12fa45c3ce41f2f8178719797116a3bb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1995a3278e3b1009112f4b37f8c0d9215f81468c"
}
,{
"testCaseDescription": "javascript-try-statement-replacement-test",
"expectedResult": {
"changes": {
"try-statement.js": [
{
"span": {
"these": [
{
"start": [
1,
20
],
"name": "try-statement.js",
"end": [
1,
21
]
},
{
"start": [
1,
20
],
"name": "try-statement.js",
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'g' identifier with the 'h' identifier",
"tag": "JSONSummary"
},
{
"span": {
"these": [
{
"start": [
1,
35
],
"name": "try-statement.js",
"end": [
1,
36
]
},
{
"start": [
1,
35
],
"name": "try-statement.js",
"end": [
1,
36
]
}
]
},
"summary": "Replaced the 'h' identifier with the 'g' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"try-statement.js"
],
"sha1": "1995a3278e3b1009112f4b37f8c0d9215f81468c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "031540f54220001ba27ec1c6f7f573d5c360c0a3"
}
,{
"testCaseDescription": "javascript-try-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"try-statement.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "try-statement.js",
"end": [
1,
39
]
}
},
"summary": "Deleted the '{ f; }' try statement",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
2,
1
],
"name": "try-statement.js",
"end": [
2,
39
]
}
},
"summary": "Deleted the '{ f; }' try statement",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "try-statement.js",
"end": [
2,
39
]
}
},
"summary": "Added the '{ f; }' try statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"try-statement.js"
],
"sha1": "031540f54220001ba27ec1c6f7f573d5c360c0a3",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1f15321135b2625ac1f1ac294f56d03ca22bf3e4"
}
,{
"testCaseDescription": "javascript-try-statement-delete-test",
"expectedResult": {
"changes": {
"try-statement.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "try-statement.js",
"end": [
1,
39
]
}
},
"summary": "Deleted the '{ f; }' try statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"try-statement.js"
],
"sha1": "1f15321135b2625ac1f1ac294f56d03ca22bf3e4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "19bdd1121f08b296b9c29125cc2ce914b97eec82"
}
,{
"testCaseDescription": "javascript-try-statement-delete-rest-test",
"expectedResult": {
"changes": {
"try-statement.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "try-statement.js",
"end": [
1,
39
]
}
},
"summary": "Deleted the '{ f; }' try statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"try-statement.js"
],
"sha1": "19bdd1121f08b296b9c29125cc2ce914b97eec82",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a23b0a588d860380edd5b815810c34e35d5855a8"
}]