1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 10:27:45 +03:00
semantic/test/corpus/diff-summaries/javascript/do-while-statement.json
2016-10-14 12:12:38 -04:00

341 lines
11 KiB
JSON

[{
"testCaseDescription": "javascript-do-while-statement-insert-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Added the 'true' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"sha1": "ffa93bbade01e1deaf1bc93a45dc44f9f581af2c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2ce29659a992b2089c3f511647c754d65ae65197"
}
,{
"testCaseDescription": "javascript-do-while-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Added the 'false' do/while statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
42
]
}
},
"summary": "Added the 'true' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"sha1": "2ce29659a992b2089c3f511647c754d65ae65197",
"gitDir": "test/corpus/repos/javascript",
"sha2": "42e6eb3c924d495388983dbedcb9937f63c50c8a"
}
,{
"testCaseDescription": "javascript-do-while-statement-delete-insert-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
18
],
"end": [
1,
29
]
},
{
"start": [
1,
18
],
"end": [
1,
24
]
}
]
},
"summary": "Replaced the 'replacement' identifier with the 'insert' identifier in the console.log(insert) method call"
},
{
"span": {
"replace": [
{
"start": [
1,
41
],
"end": [
1,
46
]
},
{
"start": [
1,
36
],
"end": [
1,
40
]
}
]
},
"summary": "Replaced 'false' with 'true' in the true do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"sha1": "42e6eb3c924d495388983dbedcb9937f63c50c8a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "697311fd1880955ebde7ace1899dbe1e13db3fe9"
}
,{
"testCaseDescription": "javascript-do-while-statement-replacement-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
18
],
"end": [
1,
24
]
},
{
"start": [
1,
18
],
"end": [
1,
29
]
}
]
},
"summary": "Replaced the 'insert' identifier with the 'replacement' identifier in the console.log(replacement) method call"
},
{
"span": {
"replace": [
{
"start": [
1,
36
],
"end": [
1,
40
]
},
{
"start": [
1,
41
],
"end": [
1,
46
]
}
]
},
"summary": "Replaced 'true' with 'false' in the false do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"sha1": "697311fd1880955ebde7ace1899dbe1e13db3fe9",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e8022988a70a25edd279da1de06062cde8080ddf"
}
,{
"testCaseDescription": "javascript-do-while-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Deleted the 'false' do/while statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
42
]
}
},
"summary": "Deleted the 'true' do/while statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
48
]
}
},
"summary": "Added the 'false' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"sha1": "e8022988a70a25edd279da1de06062cde8080ddf",
"gitDir": "test/corpus/repos/javascript",
"sha2": "59032f2ca0f693033c45b396f4d9b52b286ed1f5"
}
,{
"testCaseDescription": "javascript-do-while-statement-delete-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Deleted the 'true' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"sha1": "59032f2ca0f693033c45b396f4d9b52b286ed1f5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6a3c8ede999cadbb82923b64fd03794e78712061"
}
,{
"testCaseDescription": "javascript-do-while-statement-delete-rest-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Deleted the 'false' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"sha1": "6a3c8ede999cadbb82923b64fd03794e78712061",
"gitDir": "test/corpus/repos/javascript",
"sha2": "57bcb37116b03f7bcbe6dd3e3534c1efdba0158e"
}]