mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
287 lines
8.5 KiB
JSON
287 lines
8.5 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-assignment-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.js"
|
|
],
|
|
"sha1": "40b6f1311c0403515c07e8bfe680237a658094fa",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f74c79a78e2948249b8071f5e2e07128a9b969fc"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-assignment-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.js"
|
|
],
|
|
"sha1": "f74c79a78e2948249b8071f5e2e07128a9b969fc",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "35ceae781e7f28a56b81e20d860e95d06f3333e6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-assignment-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '1' with '0' in an assignment to x"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.js"
|
|
],
|
|
"sha1": "35ceae781e7f28a56b81e20d860e95d06f3333e6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ca5d38d28e91a00efbd015290a0211272174241e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-assignment-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '0' with '1' in an assignment to x"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.js"
|
|
],
|
|
"sha1": "ca5d38d28e91a00efbd015290a0211272174241e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7d901651262d74cfca0dfc81c44c7a86248f3cc2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-assignment-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.js"
|
|
],
|
|
"sha1": "7d901651262d74cfca0dfc81c44c7a86248f3cc2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "63e9e29bb4df3e86dcbc12ded86f488ef6080510"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-assignment-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.js"
|
|
],
|
|
"sha1": "63e9e29bb4df3e86dcbc12ded86f488ef6080510",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "58fc119da33a4358f2a849163daff5507d83b460"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-assignment-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"assignment.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' assignment"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"assignment.js"
|
|
],
|
|
"sha1": "58fc119da33a4358f2a849163daff5507d83b460",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "57057e16ba96f294605ced40a286c5e5a70a4399"
|
|
}]
|