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/if.json
2016-10-11 11:12:20 -04:00

309 lines
9.3 KiB
JSON

[{
"testCaseDescription": "javascript-if-insert-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "if.js",
"end": [
1,
19
]
}
},
"summary": "Added the 'x' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"sha1": "1fbd44cbdd925bb727f5b07af974a37db31b3ea0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d2f31345bd3ceb057e9864e3065517bd59d81e84"
}
,{
"testCaseDescription": "javascript-if-replacement-insert-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "if.js",
"end": [
1,
24
]
}
},
"summary": "Added the 'a.b' if statement",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "if.js",
"end": [
2,
19
]
}
},
"summary": "Added the 'x' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"sha1": "d2f31345bd3ceb057e9864e3065517bd59d81e84",
"gitDir": "test/corpus/repos/javascript",
"sha2": "672d891ad62294fecaa1cb0fa0b001748053a2a7"
}
,{
"testCaseDescription": "javascript-if-delete-insert-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"these": [
{
"start": [
1,
1
],
"name": "if.js",
"end": [
1,
24
]
},
{
"start": [
1,
1
],
"name": "if.js",
"end": [
1,
19
]
}
]
},
"summary": "Replaced the 'a.b' if statement with the 'x' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"sha1": "672d891ad62294fecaa1cb0fa0b001748053a2a7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9a4763d83b29a8834a92126f6c9488397a34ca60"
}
,{
"testCaseDescription": "javascript-if-replacement-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"these": [
{
"start": [
1,
1
],
"name": "if.js",
"end": [
1,
19
]
},
{
"start": [
1,
1
],
"name": "if.js",
"end": [
1,
24
]
}
]
},
"summary": "Replaced the 'x' if statement with the 'a.b' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"sha1": "9a4763d83b29a8834a92126f6c9488397a34ca60",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6fd20d99b1748aff8d5e068f799e9e8c4b174986"
}
,{
"testCaseDescription": "javascript-if-delete-replacement-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "if.js",
"end": [
1,
24
]
}
},
"summary": "Deleted the 'a.b' if statement",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
2,
1
],
"name": "if.js",
"end": [
2,
19
]
}
},
"summary": "Deleted the 'x' if statement",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "if.js",
"end": [
2,
24
]
}
},
"summary": "Added the 'a.b' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"sha1": "6fd20d99b1748aff8d5e068f799e9e8c4b174986",
"gitDir": "test/corpus/repos/javascript",
"sha2": "39e72b13348c108e810fea6c43852c082feb83e6"
}
,{
"testCaseDescription": "javascript-if-delete-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "if.js",
"end": [
1,
19
]
}
},
"summary": "Deleted the 'x' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"sha1": "39e72b13348c108e810fea6c43852c082feb83e6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6bd2aa7a9a559c032a228e8efe94ba3088432ad5"
}
,{
"testCaseDescription": "javascript-if-delete-rest-test",
"expectedResult": {
"changes": {
"if.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "if.js",
"end": [
1,
24
]
}
},
"summary": "Deleted the 'a.b' if statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"if.js"
],
"sha1": "6bd2aa7a9a559c032a228e8efe94ba3088432ad5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a6070e9c94930a94f1913e69bef6da80923cbfde"
}]