1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
semantic/test/corpus/diff-summaries/javascript/if.json

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": "408411b4e79d51cf3b50541c8d1115a3ce46dfa8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "66188f5ab8580e98c37f0b8702e95544551be755"
}
,{
"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": "66188f5ab8580e98c37f0b8702e95544551be755",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0293e32d52fc191e4a768a91746259c99acc2342"
}
,{
"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": "0293e32d52fc191e4a768a91746259c99acc2342",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7dd98c9d586de0e61d3b80ac34fe25e4f89cab42"
}
,{
"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": "7dd98c9d586de0e61d3b80ac34fe25e4f89cab42",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9a8f836a101bdd5418634b5e762b9db21a91011c"
}
,{
"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": "9a8f836a101bdd5418634b5e762b9db21a91011c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "179c1b82b833c249afd123f342dfd06380b5acb8"
}
,{
"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": "179c1b82b833c249afd123f342dfd06380b5acb8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "95123146ceab7cf639e49adb97d36a8556c19940"
}
,{
"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": "95123146ceab7cf639e49adb97d36a8556c19940",
"gitDir": "test/corpus/repos/javascript",
"sha2": "805427c7aaf71a887c429562b647fe6811ba39c9"
}]