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/variable.json
2016-10-11 11:54:47 -04:00

309 lines
9.5 KiB
JSON

[{
"testCaseDescription": "javascript-variable-insert-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "variable.js",
"end": [
1,
7
]
}
},
"summary": "Added the 'theVar' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "6539b8361c59312164d8321ca3888c0511fcf849",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c0e6c0ded2a3dced105d1ab80857cc20258b07ae"
}
,{
"testCaseDescription": "javascript-variable-replacement-insert-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "variable.js",
"end": [
1,
8
]
}
},
"summary": "Added the 'theVar2' identifier",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "variable.js",
"end": [
2,
7
]
}
},
"summary": "Added the 'theVar' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "c0e6c0ded2a3dced105d1ab80857cc20258b07ae",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2de090754d832844bf03836c5e571ab5cad2e084"
}
,{
"testCaseDescription": "javascript-variable-delete-insert-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"name": "variable.js",
"end": [
1,
8
]
},
{
"start": [
1,
1
],
"name": "variable.js",
"end": [
1,
7
]
}
]
},
"summary": "Replaced the 'theVar2' identifier with the 'theVar' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "2de090754d832844bf03836c5e571ab5cad2e084",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0f970d0d8f050af10bc4c12aaf36ffa4f13f8b2d"
}
,{
"testCaseDescription": "javascript-variable-replacement-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"name": "variable.js",
"end": [
1,
7
]
},
{
"start": [
1,
1
],
"name": "variable.js",
"end": [
1,
8
]
}
]
},
"summary": "Replaced the 'theVar' identifier with the 'theVar2' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "0f970d0d8f050af10bc4c12aaf36ffa4f13f8b2d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "adf96a48ac5436cb72483251db0f21b1f6c0628e"
}
,{
"testCaseDescription": "javascript-variable-delete-replacement-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "variable.js",
"end": [
1,
8
]
}
},
"summary": "Deleted the 'theVar2' identifier",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"name": "variable.js",
"end": [
2,
7
]
}
},
"summary": "Deleted the 'theVar' identifier",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "variable.js",
"end": [
2,
8
]
}
},
"summary": "Added the 'theVar2' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "adf96a48ac5436cb72483251db0f21b1f6c0628e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "51ba6b7b1c97e55fd7608918ac7bf9b5b4b986cd"
}
,{
"testCaseDescription": "javascript-variable-delete-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "variable.js",
"end": [
1,
7
]
}
},
"summary": "Deleted the 'theVar' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "51ba6b7b1c97e55fd7608918ac7bf9b5b4b986cd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "04b1ca5574c5256d2d3db1d073308ff0ce040736"
}
,{
"testCaseDescription": "javascript-variable-delete-rest-test",
"expectedResult": {
"changes": {
"variable.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "variable.js",
"end": [
1,
8
]
}
},
"summary": "Deleted the 'theVar2' identifier",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"variable.js"
],
"sha1": "04b1ca5574c5256d2d3db1d073308ff0ce040736",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e8164f9a5c7441db5367d1dee13694204e67e3ab"
}]