mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
293 lines
8.6 KiB
JSON
293 lines
8.6 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-ternary-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"ternary.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'condition' ternary expression"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"ternary.js"
|
|
],
|
|
"sha1": "a0ecf361e5a77382049e8df1ed58b6e9fcf16a8f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a1f4aada0fc4df561c37031b2d9d9f230d21c2bc"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-ternary-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"ternary.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
51
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x.y' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'condition' ternary expression"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"ternary.js"
|
|
],
|
|
"sha1": "a1f4aada0fc4df561c37031b2d9d9f230d21c2bc",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "55d149eaa28ea6944a7e4f8644c1c95aeeb02e35"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-ternary-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"ternary.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'condition' ternary expression"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
51
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x.y' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"ternary.js"
|
|
],
|
|
"sha1": "55d149eaa28ea6944a7e4f8644c1c95aeeb02e35",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ad2c749662fb7af836bec5c5cc1358f7f5704928"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-ternary-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"ternary.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
51
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x.y' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'condition' ternary expression"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"ternary.js"
|
|
],
|
|
"sha1": "ad2c749662fb7af836bec5c5cc1358f7f5704928",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "df201e629277d5601c6e212a48f51a54781c9a10"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-ternary-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"ternary.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
51
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x.y' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'condition' ternary expression"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
51
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x.y' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"ternary.js"
|
|
],
|
|
"sha1": "df201e629277d5601c6e212a48f51a54781c9a10",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "04b7c1d81c0bbc51b21fd100a7a5378d41d16428"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-ternary-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"ternary.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'condition' ternary expression"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"ternary.js"
|
|
],
|
|
"sha1": "04b7c1d81c0bbc51b21fd100a7a5378d41d16428",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "33ce07a2c74acc2db2029d9d8db3217eecee5fff"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-ternary-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"ternary.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
51
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x.y' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"ternary.js"
|
|
],
|
|
"sha1": "33ce07a2c74acc2db2029d9d8db3217eecee5fff",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "788da0c756fba5a3bd248220d572e7e286327f92"
|
|
}]
|