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-11 16:18:26 -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": "c5a33a05e7c473051b69c27b5268f7e73d9f9818",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f6d13c24db646eabb87a5569fab5dc059397cd41"
}
,{
"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": "f6d13c24db646eabb87a5569fab5dc059397cd41",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b97e52feb5f9b94c2f7c035a5c0b741ab2709c11"
}
,{
"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": "b97e52feb5f9b94c2f7c035a5c0b741ab2709c11",
"gitDir": "test/corpus/repos/javascript",
"sha2": "618521ec11773660442d22c09e5616569ee0d4d6"
}
,{
"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": "618521ec11773660442d22c09e5616569ee0d4d6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b058c2ef89ec07779649681bb0867d7ca642a924"
}
,{
"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": "b058c2ef89ec07779649681bb0867d7ca642a924",
"gitDir": "test/corpus/repos/javascript",
"sha2": "29a60219132b7497d5f2f2da75cd6fad3583ea3e"
}
,{
"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": "29a60219132b7497d5f2f2da75cd6fad3583ea3e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2c0695fb799f92e9549bea04968f0a7db55e5084"
}
,{
"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": "2c0695fb799f92e9549bea04968f0a7db55e5084",
"gitDir": "test/corpus/repos/javascript",
"sha2": "64789b8e632a3b70997ef3abb4ce031bb19cbedb"
}]