1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 22:01:46 +03:00
semantic/test/corpus/diff-summaries/javascript/while-statement.json
2016-10-11 11:54:47 -04:00

369 lines
12 KiB
JSON

[{
"testCaseDescription": "javascript-while-statement-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Added the 'a' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "1cbcc1b45ee2afdae4047efbc3ee0f15e89e3394",
"gitDir": "test/corpus/repos/javascript",
"sha2": "274eacb4eff7e5773666228a9546e9ab1ec68774"
}
,{
"testCaseDescription": "javascript-while-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Added the 'b' while statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "while-statement.js",
"end": [
2,
19
]
}
},
"summary": "Added the 'a' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "274eacb4eff7e5773666228a9546e9ab1ec68774",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1b77e40e3f6486158c79f7acc346e102d8a78007"
}
,{
"testCaseDescription": "javascript-while-statement-delete-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
8
],
"name": "while-statement.js",
"end": [
1,
9
]
},
{
"start": [
1,
8
],
"name": "while-statement.js",
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
13
],
"name": "while-statement.js",
"end": [
1,
14
]
},
{
"start": [
1,
13
],
"name": "while-statement.js",
"end": [
1,
14
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier in the b() function call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "1b77e40e3f6486158c79f7acc346e102d8a78007",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0eafdfad1e7720c217b9395c5b16d0e449914dbe"
}
,{
"testCaseDescription": "javascript-while-statement-replacement-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
8
],
"name": "while-statement.js",
"end": [
1,
9
]
},
{
"start": [
1,
8
],
"name": "while-statement.js",
"end": [
1,
9
]
}
]
},
"summary": "Replaced the 'a' identifier with the 'b' identifier",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
13
],
"name": "while-statement.js",
"end": [
1,
14
]
},
{
"start": [
1,
13
],
"name": "while-statement.js",
"end": [
1,
14
]
}
]
},
"summary": "Replaced the 'b' identifier with the 'a' identifier in the a() function call",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "0eafdfad1e7720c217b9395c5b16d0e449914dbe",
"gitDir": "test/corpus/repos/javascript",
"sha2": "31f8024c950f170297ffddb0f3d7b0b215c4e21f"
}
,{
"testCaseDescription": "javascript-while-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Deleted the 'b' while statement",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"name": "while-statement.js",
"end": [
2,
19
]
}
},
"summary": "Deleted the 'a' while statement",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "while-statement.js",
"end": [
2,
19
]
}
},
"summary": "Added the 'b' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "31f8024c950f170297ffddb0f3d7b0b215c4e21f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "70bf5f2b28fde7bd03a50ad40833c344aec3f10a"
}
,{
"testCaseDescription": "javascript-while-statement-delete-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Deleted the 'a' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "70bf5f2b28fde7bd03a50ad40833c344aec3f10a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2e362f8f0146680a3f4c3d5221130d532926b308"
}
,{
"testCaseDescription": "javascript-while-statement-delete-rest-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Deleted the 'b' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "2e362f8f0146680a3f4c3d5221130d532926b308",
"gitDir": "test/corpus/repos/javascript",
"sha2": "101c947313c24c2e76769c572c080adea44c80da"
}]