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

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"
],
"sha1": "9455d4cb158d3f5131c688e7909b842436c06205",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "b3b28aec78513965c8813790529e04ec9e18ed8f"
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"
],
"sha1": "b3b28aec78513965c8813790529e04ec9e18ed8f",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "e1bbcc717583d7055af827a27c1d795889bc4efb"
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"
],
"sha1": "e1bbcc717583d7055af827a27c1d795889bc4efb",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "5c811c46054adeed885741e626aaaa41249da6d5"
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"
],
"sha1": "5c811c46054adeed885741e626aaaa41249da6d5",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "d5dbee2076d579465c4a2ceba657047f04d03e64"
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"
],
"sha1": "d5dbee2076d579465c4a2ceba657047f04d03e64",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "7419753061516443955b4ee7580a8502f053bbd2"
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"
],
"sha1": "7419753061516443955b4ee7580a8502f053bbd2",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "cdeac17b9827c7036f86b58e265eac8245142a19"
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"
],
"sha1": "cdeac17b9827c7036f86b58e265eac8245142a19",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"sha2": "b33f47fbe6d253fd1ee502cda8ef5cd4bd771b42"
2016-10-11 18:12:20 +03:00
}]