mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
309 lines
9.3 KiB
JSON
309 lines
9.3 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-if-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if.js",
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.js"
|
|
],
|
|
"sha1": "b8ad05d0253ae191a5f160e7048edd003cbfd266",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "af68a65130c39064b6b6ff086c83bb15a93c09df"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if.js",
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a.b' if statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "if.js",
|
|
"end": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.js"
|
|
],
|
|
"sha1": "af68a65130c39064b6b6ff086c83bb15a93c09df",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ca0d3248805ea9e4a6db03283753386c1add674c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if.js",
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if.js",
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'a.b' if statement with the 'x' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.js"
|
|
],
|
|
"sha1": "ca0d3248805ea9e4a6db03283753386c1add674c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4449122ca03d44093b55013864f0b91ad89b34c5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if.js",
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if.js",
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'x' if statement with the 'a.b' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.js"
|
|
],
|
|
"sha1": "4449122ca03d44093b55013864f0b91ad89b34c5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fb678c888f2ab154619dc7b066c706fc38b3b1e6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if.js",
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a.b' if statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "if.js",
|
|
"end": [
|
|
2,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' if statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "if.js",
|
|
"end": [
|
|
2,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a.b' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.js"
|
|
],
|
|
"sha1": "fb678c888f2ab154619dc7b066c706fc38b3b1e6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d7133bfd9d74d7aa507fdf0eef61ed38aac6e292"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if.js",
|
|
"end": [
|
|
1,
|
|
19
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.js"
|
|
],
|
|
"sha1": "d7133bfd9d74d7aa507fdf0eef61ed38aac6e292",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d46b553e4344fd4372f71aabf2b3c4592a314ee7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-if-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "if.js",
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a.b' if statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.js"
|
|
],
|
|
"sha1": "d46b553e4344fd4372f71aabf2b3c4592a314ee7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "82dd9b63b3f990900cef36bee489fcaacf288d02"
|
|
}]
|