1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/assignment.json
2016-11-01 10:03:25 -05:00

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": "f5dfc0945ffae36e0f9784dcfeb8472344055afc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6fc2b9a8bdab5a87aeb8214b88ddafb278098394"
}
,{
"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": "6fc2b9a8bdab5a87aeb8214b88ddafb278098394",
"gitDir": "test/corpus/repos/javascript",
"sha2": "45ee00517df6dd2f5c12523b82f4ae9c361cbbab"
}
,{
"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": "45ee00517df6dd2f5c12523b82f4ae9c361cbbab",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c68a9ee4c0811ebc8bc6a97087ad578bda055575"
}
,{
"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": "c68a9ee4c0811ebc8bc6a97087ad578bda055575",
"gitDir": "test/corpus/repos/javascript",
"sha2": "aa18ede37e29b97d5478771c02f899c26ed29ec8"
}
,{
"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": "aa18ede37e29b97d5478771c02f899c26ed29ec8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e34fae4bc40de3527a8af142718f5034b8c89464"
}
,{
"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": "e34fae4bc40de3527a8af142718f5034b8c89464",
"gitDir": "test/corpus/repos/javascript",
"sha2": "844f1b80889b328b7de377506a20fd1e07722c3c"
}
,{
"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": "844f1b80889b328b7de377506a20fd1e07722c3c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "45a5360969a82ef1602c4fd2629a242bd75a1edf"
}]