1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
semantic/test/corpus/diff-summaries/javascript/assignment.json

309 lines
9.6 KiB
JSON

[{
"testCaseDescription": "javascript-assignment-insert-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "assignment.js",
"end": [
1,
6
]
}
},
"summary": "Added the 'x' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "0ee5df2573a8439ceee6c04faf15813932be3ad0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "da0e92c5c2d634371ae323ac72438223319cf76c"
}
,{
"testCaseDescription": "javascript-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "assignment.js",
"end": [
1,
6
]
}
},
"summary": "Added the 'x' assignment",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "assignment.js",
"end": [
2,
6
]
}
},
"summary": "Added the 'x' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "da0e92c5c2d634371ae323ac72438223319cf76c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8d696d6419a22c606acbc24717a78ad28167e38e"
}
,{
"testCaseDescription": "javascript-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
5
],
"filepath": "assignment.js",
"end": [
1,
6
]
},
{
"start": [
1,
5
],
"filepath": "assignment.js",
"end": [
1,
6
]
}
]
},
"summary": "Replaced '1' with '0' in an assignment to x",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "8d696d6419a22c606acbc24717a78ad28167e38e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6ac72e1d2736cbc8e0d562a8f5d1f21b5e0decd2"
}
,{
"testCaseDescription": "javascript-assignment-replacement-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"replace": [
{
"start": [
1,
5
],
"filepath": "assignment.js",
"end": [
1,
6
]
},
{
"start": [
1,
5
],
"filepath": "assignment.js",
"end": [
1,
6
]
}
]
},
"summary": "Replaced '0' with '1' in an assignment to x",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "6ac72e1d2736cbc8e0d562a8f5d1f21b5e0decd2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a188b4a762653a4bf556d9d9070d978dee3f87c8"
}
,{
"testCaseDescription": "javascript-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "assignment.js",
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' assignment",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"filepath": "assignment.js",
"end": [
2,
6
]
}
},
"summary": "Deleted the 'x' assignment",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "assignment.js",
"end": [
2,
6
]
}
},
"summary": "Added the 'x' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "a188b4a762653a4bf556d9d9070d978dee3f87c8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b5d95b98b09c3ad83bdd6baded131e1a0bbbcd3b"
}
,{
"testCaseDescription": "javascript-assignment-delete-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "assignment.js",
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "b5d95b98b09c3ad83bdd6baded131e1a0bbbcd3b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "544ea82481b53de3579e1df05aeef7495a9ba80f"
}
,{
"testCaseDescription": "javascript-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "assignment.js",
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' assignment",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
"sha1": "544ea82481b53de3579e1df05aeef7495a9ba80f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "515ac3ce664c0458a2daec58a009a959898bebfc"
}]