mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
287 lines
8.5 KiB
JSON
287 lines
8.5 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-variable-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"variable.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'theVar' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"variable.js"
|
|
],
|
|
"sha1": "9eb22be8a44011eef19c2920a462a9260f4946bf",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "514eeece46b028ea627037396a5af2c851e3f712"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-variable-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"variable.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'theVar2' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'theVar' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"variable.js"
|
|
],
|
|
"sha1": "514eeece46b028ea627037396a5af2c851e3f712",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4f93e190f748492b71ac885f04f1cbd31c465d2b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-variable-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"variable.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'theVar2' identifier with the 'theVar' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"variable.js"
|
|
],
|
|
"sha1": "4f93e190f748492b71ac885f04f1cbd31c465d2b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a424464223f67a65574d9fef40cb8a52df0e2536"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-variable-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"variable.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'theVar' identifier with the 'theVar2' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"variable.js"
|
|
],
|
|
"sha1": "a424464223f67a65574d9fef40cb8a52df0e2536",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1716837788a3a1b2dd9d60bd6291cf7c6efad014"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-variable-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"variable.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'theVar2' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'theVar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'theVar2' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"variable.js"
|
|
],
|
|
"sha1": "1716837788a3a1b2dd9d60bd6291cf7c6efad014",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "25287a6b664f35da447c1cb003df5542cf4e6aa7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-variable-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"variable.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'theVar' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"variable.js"
|
|
],
|
|
"sha1": "25287a6b664f35da447c1cb003df5542cf4e6aa7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "746a171a23988dbf889beadd98814bb8ef90e8c1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-variable-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"variable.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'theVar2' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"variable.js"
|
|
],
|
|
"sha1": "746a171a23988dbf889beadd98814bb8ef90e8c1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "263d168ffe54bda55642c51527bae52c28fa952f"
|
|
}]
|