1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/while-statement.json
2016-10-11 16:18:26 -04:00

341 lines
11 KiB
JSON

[{
"testCaseDescription": "javascript-while-statement-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
19
]
}
},
"summary": "Added the 'a' while statement"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "1476b59a288eafecf5ddd48696a3e207754a9668",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f23284bfe8af3aeae4cd0de9ff318f5c0bb1117a"
}
,{
"testCaseDescription": "javascript-while-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
19
]
}
},
"summary": "Added the 'b' while statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
19
]
}
},
"summary": "Added the 'a' while statement"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "f23284bfe8af3aeae4cd0de9ff318f5c0bb1117a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0187cf96aade757c54df567264bce2b15c5d2bde"
}
,{
"testCaseDescription": "javascript-while-statement-delete-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
8
],
"end": [
1,
9
]
},
{
"start": [
1,
8
],
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
13
],
"end": [
1,
14
]
},
{
"start": [
1,
13
],
"end": [
1,
14
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier in the b() function call"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "0187cf96aade757c54df567264bce2b15c5d2bde",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ea3cd5cf3a270d94a6fb64540f5d15c3a862d7db"
}
,{
"testCaseDescription": "javascript-while-statement-replacement-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
8
],
"end": [
1,
9
]
},
{
"start": [
1,
8
],
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
13
],
"end": [
1,
14
]
},
{
"start": [
1,
13
],
"end": [
1,
14
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier in the a() function call"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "ea3cd5cf3a270d94a6fb64540f5d15c3a862d7db",
"gitDir": "test/corpus/repos/javascript",
"sha2": "201605c6796eb154347d09577ba30c428ff8a2fe"
}
,{
"testCaseDescription": "javascript-while-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
19
]
}
},
"summary": "Deleted the 'b' while statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
19
]
}
},
"summary": "Deleted the 'a' while statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
19
]
}
},
"summary": "Added the 'b' while statement"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "201605c6796eb154347d09577ba30c428ff8a2fe",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b6a9d4096d663c0a0095d75e9ceb4dacf5bbee39"
}
,{
"testCaseDescription": "javascript-while-statement-delete-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
19
]
}
},
"summary": "Deleted the 'a' while statement"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "b6a9d4096d663c0a0095d75e9ceb4dacf5bbee39",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a82434bad4b9b59f0d6df675bc4fadfa97b992b4"
}
,{
"testCaseDescription": "javascript-while-statement-delete-rest-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
19
]
}
},
"summary": "Deleted the 'b' while statement"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "a82434bad4b9b59f0d6df675bc4fadfa97b992b4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ff624cef881f79c1f5e43043657a490eb7d137e2"
}]