1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
semantic/test/corpus/diff-summaries/javascript/while-statement.json

369 lines
12 KiB
JSON

[{
"testCaseDescription": "javascript-while-statement-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Added the 'a' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "1e95946698829d93a91686c01b91618eb065b077",
"gitDir": "test/corpus/repos/javascript",
"sha2": "003db95c9c468101af6b2a4d74708ad5cfcaeac3"
}
,{
"testCaseDescription": "javascript-while-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Added the 'b' while statement",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "while-statement.js",
"end": [
2,
19
]
}
},
"summary": "Added the 'a' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "003db95c9c468101af6b2a4d74708ad5cfcaeac3",
"gitDir": "test/corpus/repos/javascript",
"sha2": "898d1deeb737fc056929282ccce44a7aaef55034"
}
,{
"testCaseDescription": "javascript-while-statement-delete-insert-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"these": [
{
"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": {
"these": [
{
"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": "898d1deeb737fc056929282ccce44a7aaef55034",
"gitDir": "test/corpus/repos/javascript",
"sha2": "77e4e9b64b3327f448bb03592ae0db023aa4aa1d"
}
,{
"testCaseDescription": "javascript-while-statement-replacement-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"these": [
{
"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": {
"these": [
{
"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": "77e4e9b64b3327f448bb03592ae0db023aa4aa1d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6c00977dc68dc8709bce328c2cc8bfb7205793ff"
}
,{
"testCaseDescription": "javascript-while-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Deleted the 'b' while statement",
"tag": "JSONSummary"
},
{
"span": {
"this": {
"start": [
2,
1
],
"name": "while-statement.js",
"end": [
2,
19
]
}
},
"summary": "Deleted the 'a' while statement",
"tag": "JSONSummary"
},
{
"span": {
"that": {
"start": [
2,
1
],
"name": "while-statement.js",
"end": [
2,
19
]
}
},
"summary": "Added the 'b' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "6c00977dc68dc8709bce328c2cc8bfb7205793ff",
"gitDir": "test/corpus/repos/javascript",
"sha2": "494bd2f0826ef9bb743f7873c597ed76a7714ec8"
}
,{
"testCaseDescription": "javascript-while-statement-delete-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Deleted the 'a' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "494bd2f0826ef9bb743f7873c597ed76a7714ec8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "98b4204c2fe7fb408f6c5911ce1a275af862f443"
}
,{
"testCaseDescription": "javascript-while-statement-delete-rest-test",
"expectedResult": {
"changes": {
"while-statement.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "while-statement.js",
"end": [
1,
19
]
}
},
"summary": "Deleted the 'b' while statement",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"while-statement.js"
],
"sha1": "98b4204c2fe7fb408f6c5911ce1a275af862f443",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a373c4a7201be2aa145e60cf15e0adfedc85aac5"
}]