mirror of
https://github.com/github/semantic.git
synced 2024-12-21 13:51:44 +03:00
317 lines
9.6 KiB
JSON
317 lines
9.6 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-ternary-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"ternary.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "ternary.js",
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'condition' ternary expression",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"ternary.js"
|
|
],
|
|
"sha1": "216c9ba07743064780c37d5f07af95a9dee2bf96",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "5a6f3092f70f211e165506d1c3196f24b065f67a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-ternary-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"ternary.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "ternary.js",
|
|
"end": [
|
|
1,
|
|
51
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x.y' assignment",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "ternary.js",
|
|
"end": [
|
|
2,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'condition' ternary expression",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"ternary.js"
|
|
],
|
|
"sha1": "5a6f3092f70f211e165506d1c3196f24b065f67a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b0b8e37ca235cac0f4994d17eb1527cd14e4832b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-ternary-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"ternary.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "ternary.js",
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'condition' ternary expression",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "ternary.js",
|
|
"end": [
|
|
1,
|
|
51
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x.y' assignment",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"ternary.js"
|
|
],
|
|
"sha1": "b0b8e37ca235cac0f4994d17eb1527cd14e4832b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f7d548f311ce81e47facc215fefc7c734b32f131"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-ternary-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"ternary.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "ternary.js",
|
|
"end": [
|
|
1,
|
|
51
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x.y' assignment",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "ternary.js",
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'condition' ternary expression",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"ternary.js"
|
|
],
|
|
"sha1": "f7d548f311ce81e47facc215fefc7c734b32f131",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "30da4a7ee5e6eba51591601b2b9ca9cc24d30494"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-ternary-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"ternary.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "ternary.js",
|
|
"end": [
|
|
1,
|
|
51
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x.y' assignment",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "ternary.js",
|
|
"end": [
|
|
2,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'condition' ternary expression",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "ternary.js",
|
|
"end": [
|
|
2,
|
|
51
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x.y' assignment",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"ternary.js"
|
|
],
|
|
"sha1": "30da4a7ee5e6eba51591601b2b9ca9cc24d30494",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9fa12d415964908e661b33756b867eb7616e3d94"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-ternary-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"ternary.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "ternary.js",
|
|
"end": [
|
|
1,
|
|
26
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'condition' ternary expression",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"ternary.js"
|
|
],
|
|
"sha1": "9fa12d415964908e661b33756b867eb7616e3d94",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8e6ed77f360e132885b2b329a4d26492a32e0f94"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-ternary-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"ternary.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "ternary.js",
|
|
"end": [
|
|
1,
|
|
51
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x.y' assignment",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"ternary.js"
|
|
],
|
|
"sha1": "8e6ed77f360e132885b2b329a4d26492a32e0f94",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3a53bc319251c49799f5e1229514b74297ef88e4"
|
|
}]
|