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": "25d0dca67cfd26a4d408ec7cc751b428dd7d0451",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7f5cbbc47228c1104892eada850c44c6882f2e75"
|
|
}
|
|
,{
|
|
"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": "7f5cbbc47228c1104892eada850c44c6882f2e75",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "af8e715d412674a9e461911257f6cf7300181ecf"
|
|
}
|
|
,{
|
|
"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": "af8e715d412674a9e461911257f6cf7300181ecf",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "de0bf64501649b87dfa7c4cb899f7d3b10e0aeb2"
|
|
}
|
|
,{
|
|
"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": "de0bf64501649b87dfa7c4cb899f7d3b10e0aeb2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1edcda3336c0e559ed414893984424a0a3933d46"
|
|
}
|
|
,{
|
|
"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": "1edcda3336c0e559ed414893984424a0a3933d46",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "876287a27a2dd4a49bc577d774257cea7c86f22d"
|
|
}
|
|
,{
|
|
"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": "876287a27a2dd4a49bc577d774257cea7c86f22d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "0186f0d7bd20043d83475e7c5f601ab06c156246"
|
|
}
|
|
,{
|
|
"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": "0186f0d7bd20043d83475e7c5f601ab06c156246",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2f014a3eddb509376944a4938ace7c0eb952308d"
|
|
}]
|