1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +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-11-01 18:03:25 +03:00
"sha1": "00efe14aec8ad3006518ee149f738adee0aeba5d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "9503250634810e806419552ad9ad18891bbc219e"
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-11-01 18:03:25 +03:00
"sha1": "9503250634810e806419552ad9ad18891bbc219e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "6f5f810bf7512233cd31d12a0324e3fee4a476d2"
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-11-01 18:03:25 +03:00
"sha1": "6f5f810bf7512233cd31d12a0324e3fee4a476d2",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "b4c00c718fe8766bce38b8c8bb263a6a24b4f29e"
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-11-01 18:03:25 +03:00
"sha1": "b4c00c718fe8766bce38b8c8bb263a6a24b4f29e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "9a21cddbf2e326d66db1d30048a505c7b4114a17"
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-11-01 18:03:25 +03:00
"sha1": "9a21cddbf2e326d66db1d30048a505c7b4114a17",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "c67dbc109159cb73130a14bff8efb22969fa3e7d"
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-11-01 18:03:25 +03:00
"sha1": "c67dbc109159cb73130a14bff8efb22969fa3e7d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "575cfe90651d66ddda91b0764d9107f1718c1bfb"
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-11-01 18:03:25 +03:00
"sha1": "575cfe90651d66ddda91b0764d9107f1718c1bfb",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "c3ba4a1505773022c8c9750803b2f78c821f80a1"
2016-10-11 18:12:20 +03:00
}]