mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
309 lines
9.5 KiB
JSON
309 lines
9.5 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-if-else-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "82dd9b63b3f990900cef36bee489fcaacf288d02",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "37d6c28a2511afe06f6f8a56a347e53a02de2dc9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' if statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
2,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "37d6c28a2511afe06f6f8a56a347e53a02de2dc9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "10d61c3c421fb02ba22b54ff983cd29459654d24"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' if statement with the 'x' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "10d61c3c421fb02ba22b54ff983cd29459654d24",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3440c419be8b2ae978d25f259cad4815e07ab89d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'x' if statement with the 'a' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "3440c419be8b2ae978d25f259cad4815e07ab89d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1e79f5288c355ba9a3f06f3ec6e7cdf73526487e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' if statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
2,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' if statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
2,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "1e79f5288c355ba9a3f06f3ec6e7cdf73526487e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "edc8dd3ebd0490925aed9cb346cde3ab0abe732e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "edc8dd3ebd0490925aed9cb346cde3ab0abe732e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8a074903d8c3de5e7aa705d257ffd2f00ce3d318"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "8a074903d8c3de5e7aa705d257ffd2f00ce3d318",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b68fd6fad9ad8bbfb5fef0b97e42bb9899f01a0e"
|
|
}]
|