1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00
semantic/test/corpus/diff-summaries/javascript/object.json

317 lines
9.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
],
"name": "object.js",
"end": [
1,
21
]
}
},
"summary": "Added the '{ \"key1\": … }' object",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "f7d88a07b742fd7334d28806f01764ddfed94384",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "6f8bef4abc5e31e04a543d36be2551dde44e550e"
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
],
"name": "object.js",
"end": [
1,
54
]
}
},
"summary": "Added the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "object.js",
"end": [
2,
21
]
}
},
"summary": "Added the '{ \"key1\": … }' object",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "6f8bef4abc5e31e04a543d36be2551dde44e550e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "d7474d4e8300f28a199a968e552de8cae6044b36"
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
],
"name": "object.js",
"end": [
1,
37
]
}
},
"summary": "Deleted the '\"key2\": …' pair",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
39
],
"name": "object.js",
"end": [
1,
52
]
}
},
"summary": "Deleted the '\"key3\": …' pair",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "d7474d4e8300f28a199a968e552de8cae6044b36",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "e10e21b2d9e5e12c61cc17240c59db19ef0d10f7"
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
],
"name": "object.js",
"end": [
1,
37
]
}
},
"summary": "Added the '\"key2\": …' pair",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
39
],
"name": "object.js",
"end": [
1,
52
]
}
},
"summary": "Added the '\"key3\": …' pair",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "e10e21b2d9e5e12c61cc17240c59db19ef0d10f7",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "a7ec58724bdc2f71f12594b83ff1dced76cd1bad"
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
],
"name": "object.js",
"end": [
1,
54
]
}
},
"summary": "Deleted the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "object.js",
"end": [
2,
21
]
}
},
"summary": "Deleted the '{ \"key1\": … }' object",
"tag": "JSONSummary"
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"name": "object.js",
"end": [
2,
54
]
}
},
"summary": "Added the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "a7ec58724bdc2f71f12594b83ff1dced76cd1bad",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "98d31f1f5f2777d2fe89a14ae0d81f6c8b45f98c"
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
],
"name": "object.js",
"end": [
1,
21
]
}
},
"summary": "Deleted the '{ \"key1\": … }' object",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "98d31f1f5f2777d2fe89a14ae0d81f6c8b45f98c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "8a4a15f9fb5e7993a6e63395aaac3542401d72e2"
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
],
"name": "object.js",
"end": [
1,
54
]
}
},
"summary": "Deleted the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 19:00:34 +03:00
"sha1": "8a4a15f9fb5e7993a6e63395aaac3542401d72e2",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:00:34 +03:00
"sha2": "804f2056b155a51e98aacc2af9f2950bab4cbaf8"
2016-10-11 18:12:20 +03:00
}]