1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/object.json
2016-10-11 16:18:26 -04:00

293 lines
8.7 KiB
JSON

[{
"testCaseDescription": "javascript-object-insert-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Added the '{ \"key1\": … }' object"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "aefeb00bb872d8308fb1f9989a0b30bee53f794e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8d7f9432e5eccbac5a2dce503cb6e9aabe691f64"
}
,{
"testCaseDescription": "javascript-object-replacement-insert-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
54
]
}
},
"summary": "Added the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
21
]
}
},
"summary": "Added the '{ \"key1\": … }' object"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "8d7f9432e5eccbac5a2dce503cb6e9aabe691f64",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d4b9e799adb79bd4cc813ce5b7a528e65956b227"
}
,{
"testCaseDescription": "javascript-object-delete-insert-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"delete": {
"start": [
1,
21
],
"end": [
1,
37
]
}
},
"summary": "Deleted the '\"key2\": …' pair"
},
{
"span": {
"delete": {
"start": [
1,
39
],
"end": [
1,
52
]
}
},
"summary": "Deleted the '\"key3\": …' pair"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "d4b9e799adb79bd4cc813ce5b7a528e65956b227",
"gitDir": "test/corpus/repos/javascript",
"sha2": "181fb7d0795181379db61ff3d91e73e17a7f0176"
}
,{
"testCaseDescription": "javascript-object-replacement-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"insert": {
"start": [
1,
21
],
"end": [
1,
37
]
}
},
"summary": "Added the '\"key2\": …' pair"
},
{
"span": {
"insert": {
"start": [
1,
39
],
"end": [
1,
52
]
}
},
"summary": "Added the '\"key3\": …' pair"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "181fb7d0795181379db61ff3d91e73e17a7f0176",
"gitDir": "test/corpus/repos/javascript",
"sha2": "48b14e07a2432070ba8edc7a97b3a3f5744c4f95"
}
,{
"testCaseDescription": "javascript-object-delete-replacement-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
54
]
}
},
"summary": "Deleted the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
21
]
}
},
"summary": "Deleted the '{ \"key1\": … }' object"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
54
]
}
},
"summary": "Added the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "48b14e07a2432070ba8edc7a97b3a3f5744c4f95",
"gitDir": "test/corpus/repos/javascript",
"sha2": "76e45b38000091fee41bc0a0a9f3a5cd65c5492d"
}
,{
"testCaseDescription": "javascript-object-delete-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Deleted the '{ \"key1\": … }' object"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "76e45b38000091fee41bc0a0a9f3a5cd65c5492d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2a18894fa97cf6cfb430156aa4a2e0acee543c4c"
}
,{
"testCaseDescription": "javascript-object-delete-rest-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
54
]
}
},
"summary": "Deleted the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "2a18894fa97cf6cfb430156aa4a2e0acee543c4c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0f272e863d223922521e94218a6aace378859dde"
}]