mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
287 lines
8.4 KiB
JSON
287 lines
8.4 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-if-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.js"
|
|
],
|
|
"sha1": "fea7c4e5e7ef995bd263e0a5184f52a85b8471f5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b602f925d76eab1ed9ec00d09bfa728fde728845"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a.b' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.js"
|
|
],
|
|
"sha1": "b602f925d76eab1ed9ec00d09bfa728fde728845",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c385866615c70b03f038f55e00ad9f40cf79b581"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a.b' if statement with the 'x' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.js"
|
|
],
|
|
"sha1": "c385866615c70b03f038f55e00ad9f40cf79b581",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "becfdf30be5b30d9710d9371b1f1a299bea40bc7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'x' if statement with the 'a.b' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.js"
|
|
],
|
|
"sha1": "becfdf30be5b30d9710d9371b1f1a299bea40bc7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8d8262d47e79972ed7bba7cfb43581619ad1ef40"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a.b' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a.b' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.js"
|
|
],
|
|
"sha1": "8d8262d47e79972ed7bba7cfb43581619ad1ef40",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9a9c262fd674c3388e78910b920ca424f95c425b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.js"
|
|
],
|
|
"sha1": "9a9c262fd674c3388e78910b920ca424f95c425b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8e3c2f6ad83a660f7fcea8226aa4f121cc2e43ca"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a.b' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.js"
|
|
],
|
|
"sha1": "8e3c2f6ad83a660f7fcea8226aa4f121cc2e43ca",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9b59cc5b4778afd051d9b4bd83cb0f79283f04ee"
|
|
}]
|