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-10-11 16:18:26 -04: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": "a561bcb5c9e49680fd9c162c616048bfa100277a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3305579204370d2000328a15830609cd1a3cc048"
}
,{
"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": "3305579204370d2000328a15830609cd1a3cc048",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6df94e140941a17e62fc44b5695a49949169bfb1"
}
,{
"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": "6df94e140941a17e62fc44b5695a49949169bfb1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "18468291d2bfbfce6c55fd4786eccde87ccb31f0"
}
,{
"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": "18468291d2bfbfce6c55fd4786eccde87ccb31f0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f9256802deb7eee30f243cbf5e99688511ae989e"
}
,{
"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": "f9256802deb7eee30f243cbf5e99688511ae989e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ce267e2a4a95c57f1ccfbc0fb6d86c846a492757"
}
,{
"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": "ce267e2a4a95c57f1ccfbc0fb6d86c846a492757",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d7d26936a69a2962d5ec0b7b30ce6672df042253"
}
,{
"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": "d7d26936a69a2962d5ec0b7b30ce6672df042253",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3b9571c33eac180e0dcf502ffe6eb68757aa50f2"
}]