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-11-01 18:03:25 +03:00
"sha1": "26df3b54cd036f1ed2bff8a0ca225ad680e23432",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "275a09584d8d33199f73045e1f070e2b9a714fc9"
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-11-01 18:03:25 +03:00
"sha1": "275a09584d8d33199f73045e1f070e2b9a714fc9",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "c3245f5cb3dca8b5fcf3d1ea1e16e77602560442"
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-11-01 18:03:25 +03:00
"sha1": "c3245f5cb3dca8b5fcf3d1ea1e16e77602560442",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "dcc065cf8b2bab2519aaaac434f17e88abe22965"
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-11-01 18:03:25 +03:00
"sha1": "dcc065cf8b2bab2519aaaac434f17e88abe22965",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "1d1e9bb19ab493af77f9e987c01bdacd45b8db15"
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-11-01 18:03:25 +03:00
"sha1": "1d1e9bb19ab493af77f9e987c01bdacd45b8db15",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "9d63fa6989fd2bfaffab6531784de14af800bff7"
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-11-01 18:03:25 +03:00
"sha1": "9d63fa6989fd2bfaffab6531784de14af800bff7",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "8e67b7193d675b0801d962b2fc9d4e8dfdc69936"
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-11-01 18:03:25 +03:00
"sha1": "8e67b7193d675b0801d962b2fc9d4e8dfdc69936",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "0f2f0f6f7ae9bb6ee07a66ff1021c512e7ff727a"
2016-10-11 18:12:20 +03:00
}]