mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +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": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "805427c7aaf71a887c429562b647fe6811ba39c9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "46ab86718f54c48cd2f565a432f4187de5bc0fbe"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' if statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
2,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "46ab86718f54c48cd2f565a432f4187de5bc0fbe",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "111b0fa6c30be41e42f49a8b97734c2f29ffe887"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"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": "111b0fa6c30be41e42f49a8b97734c2f29ffe887",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "86bcc1f27f5c8d1108c1fd41681db0786ce40577"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"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": "86bcc1f27f5c8d1108c1fd41681db0786ce40577",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "08b8b6246b046b2fa0a5b480bde9ea2a59496cab"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' if statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
2,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' if statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
2,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "08b8b6246b046b2fa0a5b480bde9ea2a59496cab",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f3c6acb380e4f8baa60d7ea87e7d62bdfb6832ac"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "f3c6acb380e4f8baa60d7ea87e7d62bdfb6832ac",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "542ca4c9f7fdfd3e4660588a20f5cc7f40792166"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if-else.js",
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "542ca4c9f7fdfd3e4660588a20f5cc7f40792166",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "125f2e2e8e65a10784e72bb113319c805d4f42ac"
|
|
}]
|