mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
287 lines
8.5 KiB
JSON
287 lines
8.5 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-if-else-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "87e9a2aa87fe8ade777cede1f4aafaf08ecae234",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fe4e1d66c7274875e97a58afd154c3a52dd1e209"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "fe4e1d66c7274875e97a58afd154c3a52dd1e209",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "35c1ee86da92dac8e83a90e16117edef648fa046"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a' if statement with the 'x' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "35c1ee86da92dac8e83a90e16117edef648fa046",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a2077c16284c6ef1536de26e54c664e16d86aa77"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'x' if statement with the 'a' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "a2077c16284c6ef1536de26e54c664e16d86aa77",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "570c48c00647816dfee86d7fccd43c6780f31bab"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "570c48c00647816dfee86d7fccd43c6780f31bab",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b150e3e99b36037a0f6257c91ae7b81ec03a81b3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "b150e3e99b36037a0f6257c91ae7b81ec03a81b3",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "75e810f214bee24a4fab15f831c743cb3efa3644"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-else-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if-else.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
29
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if-else.js"
|
|
],
|
|
"sha1": "75e810f214bee24a4fab15f831c743cb3efa3644",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fbe73384a2305d0e1ea41344a9ae841a4ab2cefe"
|
|
}]
|