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.8 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
],
2016-10-11 19:52:26 +03:00
"filepath": "object.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
21
]
}
},
"summary": "Added the '{ \"key1\": … }' object",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "1b4f57cfac8417f168e3ab820d321029ac522ca8",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "6abc7ad0c6b8ae2a549c43af67628d709e7cd8b1"
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
],
2016-10-11 19:52:26 +03:00
"filepath": "object.js",
2016-10-11 18:12:20 +03:00
"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
],
2016-10-11 19:52:26 +03:00
"filepath": "object.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
21
]
}
},
"summary": "Added the '{ \"key1\": … }' object",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "6abc7ad0c6b8ae2a549c43af67628d709e7cd8b1",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "c7222a5f704a94e8287ac06adde5ffc82bfa71a8"
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
],
2016-10-11 19:52:26 +03:00
"filepath": "object.js",
2016-10-11 18:12:20 +03:00
"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
],
2016-10-11 19:52:26 +03:00
"filepath": "object.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
52
]
}
},
"summary": "Deleted the '\"key3\": …' pair",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "c7222a5f704a94e8287ac06adde5ffc82bfa71a8",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "e54491511c1fef0c0c8941288366373d5b44313f"
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
],
2016-10-11 19:52:26 +03:00
"filepath": "object.js",
2016-10-11 18:12:20 +03:00
"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
],
2016-10-11 19:52:26 +03:00
"filepath": "object.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
52
]
}
},
"summary": "Added the '\"key3\": …' pair",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "e54491511c1fef0c0c8941288366373d5b44313f",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "019782a8597ca72f22180c4db541182e3ae872f5"
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
],
2016-10-11 19:52:26 +03:00
"filepath": "object.js",
2016-10-11 18:12:20 +03:00
"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
],
2016-10-11 19:52:26 +03:00
"filepath": "object.js",
2016-10-11 18:12:20 +03:00
"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
],
2016-10-11 19:52:26 +03:00
"filepath": "object.js",
2016-10-11 18:12:20 +03:00
"end": [
2,
54
]
}
},
"summary": "Added the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "019782a8597ca72f22180c4db541182e3ae872f5",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "9d3a32337c68d56e898e3f79cae920917977c3dc"
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
],
2016-10-11 19:52:26 +03:00
"filepath": "object.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
21
]
}
},
"summary": "Deleted the '{ \"key1\": … }' object",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "9d3a32337c68d56e898e3f79cae920917977c3dc",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "e5889419240970710a2958332ed72fba51bf3deb"
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
],
2016-10-11 19:52:26 +03:00
"filepath": "object.js",
2016-10-11 18:12:20 +03:00
"end": [
1,
54
]
}
},
"summary": "Deleted the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
2016-10-11 19:52:26 +03:00
"sha1": "e5889419240970710a2958332ed72fba51bf3deb",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-11 19:52:26 +03:00
"sha2": "4f51ffb21d44954d5c9b1c783a7281134da74d7a"
2016-10-11 18:12:20 +03:00
}]