1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 06:11:49 +03:00
semantic/test/corpus/diff-summaries/javascript/assignment.json
2016-10-11 15:13:51 -04:00

297 lines
8.9 KiB
JSON

[{
"testCaseDescription": "javascript-assignment-insert-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the 'x' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "e1b8eb2bcd67f643f76a7eb820f49a2ef4f1774c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3a7df001a06d312b1befb24699e3f60a41e07c09"
}
,{
"testCaseDescription": "javascript-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the 'x' assignment",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Added the 'x' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "3a7df001a06d312b1befb24699e3f60a41e07c09",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6142fd5f7cc7d6882b4d2682beb6ab487f37221f"
}
,{
"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",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "6142fd5f7cc7d6882b4d2682beb6ab487f37221f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ccd4b8841a4c1ac1e93e7b6937b085ca9c589f45"
}
,{
"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",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "ccd4b8841a4c1ac1e93e7b6937b085ca9c589f45",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e50c3b804fe956a8d66c615ce341d23949b1e0bc"
}
,{
"testCaseDescription": "javascript-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' assignment",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Deleted the 'x' assignment",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Added the 'x' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "e50c3b804fe956a8d66c615ce341d23949b1e0bc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9a82a708b3f1e537ea6580f22e1c61a39c0e56f2"
}
,{
"testCaseDescription": "javascript-assignment-delete-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "9a82a708b3f1e537ea6580f22e1c61a39c0e56f2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8ca532d1c838722ab652073a5052a0bb58bba456"
}
,{
"testCaseDescription": "javascript-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "8ca532d1c838722ab652073a5052a0bb58bba456",
"gitDir": "test/corpus/repos/javascript",
"sha2": "db6bbfe82747173a73c33bab9da91003e1fe0634"
}]