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": "26df3b54cd036f1ed2bff8a0ca225ad680e23432",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "275a09584d8d33199f73045e1f070e2b9a714fc9"
|
|
}
|
|
,{
|
|
"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": "275a09584d8d33199f73045e1f070e2b9a714fc9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c3245f5cb3dca8b5fcf3d1ea1e16e77602560442"
|
|
}
|
|
,{
|
|
"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": "c3245f5cb3dca8b5fcf3d1ea1e16e77602560442",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "dcc065cf8b2bab2519aaaac434f17e88abe22965"
|
|
}
|
|
,{
|
|
"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": "dcc065cf8b2bab2519aaaac434f17e88abe22965",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1d1e9bb19ab493af77f9e987c01bdacd45b8db15"
|
|
}
|
|
,{
|
|
"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": "1d1e9bb19ab493af77f9e987c01bdacd45b8db15",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9d63fa6989fd2bfaffab6531784de14af800bff7"
|
|
}
|
|
,{
|
|
"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": "9d63fa6989fd2bfaffab6531784de14af800bff7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8e67b7193d675b0801d962b2fc9d4e8dfdc69936"
|
|
}
|
|
,{
|
|
"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": "8e67b7193d675b0801d962b2fc9d4e8dfdc69936",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "0f2f0f6f7ae9bb6ee07a66ff1021c512e7ff727a"
|
|
}]
|