mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
293 lines
8.4 KiB
JSON
293 lines
8.4 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-true-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'true'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "61bc6f5d88996b0389008de15dcb953ab258e2ca",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fa43902d69716db56f90fd8631d091bfd0133113"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'true' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'true'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "fa43902d69716db56f90fd8631d091bfd0133113",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "826b4ac31a3425dd4c3c3ac7caf150018b005a15"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added 'true'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'true' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "826b4ac31a3425dd4c3c3ac7caf150018b005a15",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "cf09bef3158683c7796da1dfa950fac3cbc80e90"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'true' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'true'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "cf09bef3158683c7796da1dfa950fac3cbc80e90",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "84c7ca368f600e74422e5890784692b267836ec7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'true' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'true'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'true' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "84c7ca368f600e74422e5890784692b267836ec7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3a93d2360af32428b1958d6ed7bc51e8b1c1c756"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted 'true'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "3a93d2360af32428b1958d6ed7bc51e8b1c1c756",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "21fd843f01bcddb7da8b9ef43c7f6ea45302ee44"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-true-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"true.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'true' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"true.js"
|
|
],
|
|
"sha1": "21fd843f01bcddb7da8b9ef43c7f6ea45302ee44",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "19100604a6300c0f7230707208a10d15ff17b29d"
|
|
}]
|