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

293 lines
8.7 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-object-insert-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
21
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '{ \"key1\": … }' object"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "aefeb00bb872d8308fb1f9989a0b30bee53f794e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "8d7f9432e5eccbac5a2dce503cb6e9aabe691f64"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-object-replacement-insert-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
54
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object"
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,
21
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '{ \"key1\": … }' object"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "8d7f9432e5eccbac5a2dce503cb6e9aabe691f64",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "d4b9e799adb79bd4cc813ce5b7a528e65956b227"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-object-delete-insert-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
21
],
"end": [
1,
37
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '\"key2\": …' pair"
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": [
1,
39
],
"end": [
1,
52
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '\"key3\": …' pair"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "d4b9e799adb79bd4cc813ce5b7a528e65956b227",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "181fb7d0795181379db61ff3d91e73e17a7f0176"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-object-replacement-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
21
],
"end": [
1,
37
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '\"key2\": …' pair"
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": [
1,
39
],
"end": [
1,
52
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '\"key3\": …' pair"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "181fb7d0795181379db61ff3d91e73e17a7f0176",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "48b14e07a2432070ba8edc7a97b3a3f5744c4f95"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-object-delete-replacement-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
54
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object"
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,
21
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '{ \"key1\": … }' object"
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,
54
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "48b14e07a2432070ba8edc7a97b3a3f5744c4f95",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "76e45b38000091fee41bc0a0a9f3a5cd65c5492d"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-object-delete-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
21
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '{ \"key1\": … }' object"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "76e45b38000091fee41bc0a0a9f3a5cd65c5492d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "2a18894fa97cf6cfb430156aa4a2e0acee543c4c"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-object-delete-rest-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
54
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 23:17:34 +03:00
"sha1": "2a18894fa97cf6cfb430156aa4a2e0acee543c4c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 23:17:34 +03:00
"sha2": "0f272e863d223922521e94218a6aace378859dde"
2016-10-11 18:12:20 +03:00
}]