1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/javascript/object.json
2016-11-01 10:03:25 -05: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": "00efe14aec8ad3006518ee149f738adee0aeba5d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9503250634810e806419552ad9ad18891bbc219e"
}
,{
"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": "9503250634810e806419552ad9ad18891bbc219e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6f5f810bf7512233cd31d12a0324e3fee4a476d2"
}
,{
"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": "6f5f810bf7512233cd31d12a0324e3fee4a476d2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b4c00c718fe8766bce38b8c8bb263a6a24b4f29e"
}
,{
"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": "b4c00c718fe8766bce38b8c8bb263a6a24b4f29e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9a21cddbf2e326d66db1d30048a505c7b4114a17"
}
,{
"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": "9a21cddbf2e326d66db1d30048a505c7b4114a17",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c67dbc109159cb73130a14bff8efb22969fa3e7d"
}
,{
"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": "c67dbc109159cb73130a14bff8efb22969fa3e7d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "575cfe90651d66ddda91b0764d9107f1718c1bfb"
}
,{
"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": "575cfe90651d66ddda91b0764d9107f1718c1bfb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c3ba4a1505773022c8c9750803b2f78c821f80a1"
}]