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

287 lines
8.5 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-assignment-insert-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
6
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "a561bcb5c9e49680fd9c162c616048bfa100277a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "3305579204370d2000328a15830609cd1a3cc048"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
6
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x' assignment"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
6
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "3305579204370d2000328a15830609cd1a3cc048",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "6df94e140941a17e62fc44b5695a49949169bfb1"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
5
],
"end": [
1,
6
]
},
{
"start": [
1,
5
],
"end": [
1,
6
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '1' with '0' in an assignment to x"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "6df94e140941a17e62fc44b5695a49949169bfb1",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "18468291d2bfbfce6c55fd4786eccde87ccb31f0"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-assignment-replacement-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
5
],
"end": [
1,
6
]
},
{
"start": [
1,
5
],
"end": [
1,
6
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced '0' with '1' in an assignment to x"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "18468291d2bfbfce6c55fd4786eccde87ccb31f0",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "f9256802deb7eee30f243cbf5e99688511ae989e"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
6
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x' assignment"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
6
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x' assignment"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
6
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "f9256802deb7eee30f243cbf5e99688511ae989e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "ce267e2a4a95c57f1ccfbc0fb6d86c846a492757"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-assignment-delete-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
6
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "ce267e2a4a95c57f1ccfbc0fb6d86c846a492757",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "d7d26936a69a2962d5ec0b7b30ce6672df042253"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"assignment.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
6
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x' assignment"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"assignment.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "d7d26936a69a2962d5ec0b7b30ce6672df042253",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "3b9571c33eac180e0dcf502ffe6eb68757aa50f2"
2016-10-11 18:12:20 +03:00
}]