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

317 lines
9.8 KiB
JSON

[{
"testCaseDescription": "javascript-object-insert-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "object.js",
"end": [
1,
21
]
}
},
"summary": "Added the '{ \"key1\": … }' object",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "9455d4cb158d3f5131c688e7909b842436c06205",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b3b28aec78513965c8813790529e04ec9e18ed8f"
}
,{
"testCaseDescription": "javascript-object-replacement-insert-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "object.js",
"end": [
1,
54
]
}
},
"summary": "Added the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "object.js",
"end": [
2,
21
]
}
},
"summary": "Added the '{ \"key1\": … }' object",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "b3b28aec78513965c8813790529e04ec9e18ed8f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e1bbcc717583d7055af827a27c1d795889bc4efb"
}
,{
"testCaseDescription": "javascript-object-delete-insert-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"delete": {
"start": [
1,
21
],
"filepath": "object.js",
"end": [
1,
37
]
}
},
"summary": "Deleted the '\"key2\": …' pair",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
1,
39
],
"filepath": "object.js",
"end": [
1,
52
]
}
},
"summary": "Deleted the '\"key3\": …' pair",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "e1bbcc717583d7055af827a27c1d795889bc4efb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5c811c46054adeed885741e626aaaa41249da6d5"
}
,{
"testCaseDescription": "javascript-object-replacement-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"insert": {
"start": [
1,
21
],
"filepath": "object.js",
"end": [
1,
37
]
}
},
"summary": "Added the '\"key2\": …' pair",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
1,
39
],
"filepath": "object.js",
"end": [
1,
52
]
}
},
"summary": "Added the '\"key3\": …' pair",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "5c811c46054adeed885741e626aaaa41249da6d5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d5dbee2076d579465c4a2ceba657047f04d03e64"
}
,{
"testCaseDescription": "javascript-object-delete-replacement-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "object.js",
"end": [
1,
54
]
}
},
"summary": "Deleted the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"filepath": "object.js",
"end": [
2,
21
]
}
},
"summary": "Deleted the '{ \"key1\": … }' object",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "object.js",
"end": [
2,
54
]
}
},
"summary": "Added the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "d5dbee2076d579465c4a2ceba657047f04d03e64",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7419753061516443955b4ee7580a8502f053bbd2"
}
,{
"testCaseDescription": "javascript-object-delete-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "object.js",
"end": [
1,
21
]
}
},
"summary": "Deleted the '{ \"key1\": … }' object",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "7419753061516443955b4ee7580a8502f053bbd2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cdeac17b9827c7036f86b58e265eac8245142a19"
}
,{
"testCaseDescription": "javascript-object-delete-rest-test",
"expectedResult": {
"changes": {
"object.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "object.js",
"end": [
1,
54
]
}
},
"summary": "Deleted the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"object.js"
],
"sha1": "cdeac17b9827c7036f86b58e265eac8245142a19",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b33f47fbe6d253fd1ee502cda8ef5cd4bd771b42"
}]