1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/ternary.json

293 lines
8.6 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-ternary-insert-test",
"expectedResult": {
"changes": {
"ternary.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
26
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'condition' ternary expression"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"ternary.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "a0ecf361e5a77382049e8df1ed58b6e9fcf16a8f",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "a1f4aada0fc4df561c37031b2d9d9f230d21c2bc"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-ternary-replacement-insert-test",
"expectedResult": {
"changes": {
"ternary.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
51
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x.y' assignment"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
26
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'condition' ternary expression"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"ternary.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "a1f4aada0fc4df561c37031b2d9d9f230d21c2bc",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "55d149eaa28ea6944a7e4f8644c1c95aeeb02e35"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-ternary-delete-insert-test",
"expectedResult": {
"changes": {
"ternary.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
26
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'condition' ternary expression"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
51
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x.y' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"ternary.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "55d149eaa28ea6944a7e4f8644c1c95aeeb02e35",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "ad2c749662fb7af836bec5c5cc1358f7f5704928"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-ternary-replacement-test",
"expectedResult": {
"changes": {
"ternary.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
51
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x.y' assignment"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
26
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'condition' ternary expression"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"ternary.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "ad2c749662fb7af836bec5c5cc1358f7f5704928",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "df201e629277d5601c6e212a48f51a54781c9a10"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-ternary-delete-replacement-test",
"expectedResult": {
"changes": {
"ternary.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
51
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x.y' assignment"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
26
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'condition' ternary expression"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
51
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x.y' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"ternary.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "df201e629277d5601c6e212a48f51a54781c9a10",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "04b7c1d81c0bbc51b21fd100a7a5378d41d16428"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-ternary-delete-test",
"expectedResult": {
"changes": {
"ternary.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
26
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'condition' ternary expression"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"ternary.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "04b7c1d81c0bbc51b21fd100a7a5378d41d16428",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "33ce07a2c74acc2db2029d9d8db3217eecee5fff"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-ternary-delete-rest-test",
"expectedResult": {
"changes": {
"ternary.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
51
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x.y' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"ternary.js"
],
2016-10-14 19:18:46 +03:00
"sha1": "33ce07a2c74acc2db2029d9d8db3217eecee5fff",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:18:46 +03:00
"sha2": "788da0c756fba5a3bd248220d572e7e286327f92"
2016-10-11 18:12:20 +03:00
}]