mirror of
https://github.com/github/semantic.git
synced 2024-12-21 13:51:44 +03:00
317 lines
9.7 KiB
JSON
317 lines
9.7 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-object-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"object.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "object.js",
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ \"key1\": … }' object",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"object.js"
|
|
],
|
|
"sha1": "05cde689481d4a3150edf8d68c07b711548b1c42",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a82d05e8e33ae0b96a558c5e83a4c2df6de327cc"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-object-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"object.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "object.js",
|
|
"end": [
|
|
1,
|
|
54
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "object.js",
|
|
"end": [
|
|
2,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ \"key1\": … }' object",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"object.js"
|
|
],
|
|
"sha1": "a82d05e8e33ae0b96a558c5e83a4c2df6de327cc",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6da3ab8b36cd94063af7d79dac0d1fc3681f70cd"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-object-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"object.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
21
|
|
],
|
|
"name": "object.js",
|
|
"end": [
|
|
1,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"key2\": …' pair",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
39
|
|
],
|
|
"name": "object.js",
|
|
"end": [
|
|
1,
|
|
52
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '\"key3\": …' pair",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"object.js"
|
|
],
|
|
"sha1": "6da3ab8b36cd94063af7d79dac0d1fc3681f70cd",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1324b314637c3121330a2eb556e01c812056edab"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-object-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"object.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
21
|
|
],
|
|
"name": "object.js",
|
|
"end": [
|
|
1,
|
|
37
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"key2\": …' pair",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
39
|
|
],
|
|
"name": "object.js",
|
|
"end": [
|
|
1,
|
|
52
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '\"key3\": …' pair",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"object.js"
|
|
],
|
|
"sha1": "1324b314637c3121330a2eb556e01c812056edab",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ac121256df1e9fe9f2d385aa0410250763c35798"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-object-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"object.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "object.js",
|
|
"end": [
|
|
1,
|
|
54
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "object.js",
|
|
"end": [
|
|
2,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ \"key1\": … }' object",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "object.js",
|
|
"end": [
|
|
2,
|
|
54
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"object.js"
|
|
],
|
|
"sha1": "ac121256df1e9fe9f2d385aa0410250763c35798",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "22387f65f861db2c90f8e89e3035c436f9013523"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-object-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"object.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "object.js",
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ \"key1\": … }' object",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"object.js"
|
|
],
|
|
"sha1": "22387f65f861db2c90f8e89e3035c436f9013523",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b602e503004cc504fc1368fe867cbdc673940e91"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-object-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"object.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "object.js",
|
|
"end": [
|
|
1,
|
|
54
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '{ \"key1\": …, \"key2\": …, \"key3\": … }' object",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"object.js"
|
|
],
|
|
"sha1": "b602e503004cc504fc1368fe867cbdc673940e91",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a0404e9e7b61466d953a033ff444c10691cea549"
|
|
}]
|