1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/javascript/while-statement.json
2016-11-01 10:03:25 -05: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": "a155a2bd652ca5aaa95ea8e31c7eac9662aa07f9",
"gitDir": "test/corpus/repos/javascript",
"sha2": "97cc8bda4de00f4a8770d024d5ffb43af88a91c3"
}
,{
"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": "97cc8bda4de00f4a8770d024d5ffb43af88a91c3",
"gitDir": "test/corpus/repos/javascript",
"sha2": "47dfc4d4ccd3bc0f418576938c0a5501b54e00fe"
}
,{
"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": "47dfc4d4ccd3bc0f418576938c0a5501b54e00fe",
"gitDir": "test/corpus/repos/javascript",
"sha2": "07111f9c087018d34f8c7564fb7683008f00559b"
}
,{
"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": "07111f9c087018d34f8c7564fb7683008f00559b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a2e6488177df310b5938eb448488bee2eaf4c24e"
}
,{
"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": "a2e6488177df310b5938eb448488bee2eaf4c24e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9b3f1334351b7de4a7e34b42c4c1e001e4bf2744"
}
,{
"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": "9b3f1334351b7de4a7e34b42c4c1e001e4bf2744",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d942929671d3c1ebf83ab87803047e8aceb1c837"
}
,{
"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": "d942929671d3c1ebf83ab87803047e8aceb1c837",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ec8ba8297edb4d6d8dbc00d6f028116e0b58abe8"
}]