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

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-14 21:40:07 +03:00
"sha1": "40b6f1311c0403515c07e8bfe680237a658094fa",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "f74c79a78e2948249b8071f5e2e07128a9b969fc"
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-14 21:40:07 +03:00
"sha1": "f74c79a78e2948249b8071f5e2e07128a9b969fc",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "35ceae781e7f28a56b81e20d860e95d06f3333e6"
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-14 21:40:07 +03:00
"sha1": "35ceae781e7f28a56b81e20d860e95d06f3333e6",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "ca5d38d28e91a00efbd015290a0211272174241e"
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-14 21:40:07 +03:00
"sha1": "ca5d38d28e91a00efbd015290a0211272174241e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "7d901651262d74cfca0dfc81c44c7a86248f3cc2"
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-14 21:40:07 +03:00
"sha1": "7d901651262d74cfca0dfc81c44c7a86248f3cc2",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "63e9e29bb4df3e86dcbc12ded86f488ef6080510"
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-14 21:40:07 +03:00
"sha1": "63e9e29bb4df3e86dcbc12ded86f488ef6080510",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "58fc119da33a4358f2a849163daff5507d83b460"
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-14 21:40:07 +03:00
"sha1": "58fc119da33a4358f2a849163daff5507d83b460",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 21:40:07 +03:00
"sha2": "57057e16ba96f294605ced40a286c5e5a70a4399"
2016-10-11 18:12:20 +03:00
}]