1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/var-declaration.json
2016-10-11 16:18:26 -04:00

467 lines
14 KiB
JSON

[{
"testCaseDescription": "javascript-var-declaration-insert-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"insert": {
"start": [
1,
5
],
"end": [
1,
10
]
}
},
"summary": "Added the 'x' variable"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
"sha1": "6f8397f676d372fb7cc681c6170eab3f00a5508b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a0b5c84fbb211d943917ca1b033d0f4d69e99fab"
}
,{
"testCaseDescription": "javascript-var-declaration-replacement-insert-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"insert": {
"start": [
1,
5
],
"end": [
1,
6
]
}
},
"summary": "Added the 'x' variable"
},
{
"span": {
"insert": {
"start": [
1,
8
],
"end": [
1,
14
]
}
},
"summary": "Added the 'y' variable"
},
{
"span": {
"insert": {
"start": [
1,
16
],
"end": [
1,
17
]
}
},
"summary": "Added the 'z' variable"
},
{
"span": {
"insert": {
"start": [
2,
5
],
"end": [
2,
10
]
}
},
"summary": "Added the 'x' variable"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
"sha1": "a0b5c84fbb211d943917ca1b033d0f4d69e99fab",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b29aa1c8b4ce011908b5fcb146722a7415615b61"
}
,{
"testCaseDescription": "javascript-var-declaration-delete-insert-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"replace": [
{
"start": [
1,
5
],
"end": [
1,
6
]
},
{
"start": [
1,
5
],
"end": [
1,
10
]
}
]
},
"summary": "Replaced the 'x' variable with the 'x' variable"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"end": [
1,
14
]
}
},
"summary": "Deleted the 'y' variable"
},
{
"span": {
"delete": {
"start": [
1,
16
],
"end": [
1,
17
]
}
},
"summary": "Deleted the 'z' variable"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
"sha1": "b29aa1c8b4ce011908b5fcb146722a7415615b61",
"gitDir": "test/corpus/repos/javascript",
"sha2": "121898865a4153fdee7af490b7f95e63dfecd245"
}
,{
"testCaseDescription": "javascript-var-declaration-replacement-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"replace": [
{
"start": [
1,
5
],
"end": [
1,
10
]
},
{
"start": [
1,
5
],
"end": [
1,
6
]
}
]
},
"summary": "Replaced the 'x' variable with the 'x' variable"
},
{
"span": {
"insert": {
"start": [
1,
8
],
"end": [
1,
14
]
}
},
"summary": "Added the 'y' variable"
},
{
"span": {
"insert": {
"start": [
1,
16
],
"end": [
1,
17
]
}
},
"summary": "Added the 'z' variable"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
"sha1": "121898865a4153fdee7af490b7f95e63dfecd245",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4f800595767d306adf1001a3e532c0f49c77549b"
}
,{
"testCaseDescription": "javascript-var-declaration-delete-replacement-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"delete": {
"start": [
1,
5
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' variable"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"end": [
1,
14
]
}
},
"summary": "Deleted the 'y' variable"
},
{
"span": {
"delete": {
"start": [
1,
16
],
"end": [
1,
17
]
}
},
"summary": "Deleted the 'z' variable"
},
{
"span": {
"delete": {
"start": [
2,
5
],
"end": [
2,
10
]
}
},
"summary": "Deleted the 'x' variable"
},
{
"span": {
"insert": {
"start": [
2,
5
],
"end": [
2,
6
]
}
},
"summary": "Added the 'x' variable"
},
{
"span": {
"insert": {
"start": [
2,
8
],
"end": [
2,
14
]
}
},
"summary": "Added the 'y' variable"
},
{
"span": {
"insert": {
"start": [
2,
16
],
"end": [
2,
17
]
}
},
"summary": "Added the 'z' variable"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
"sha1": "4f800595767d306adf1001a3e532c0f49c77549b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a62c5f0ceea3f103315aab7f595f0fc257690f46"
}
,{
"testCaseDescription": "javascript-var-declaration-delete-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"delete": {
"start": [
1,
5
],
"end": [
1,
10
]
}
},
"summary": "Deleted the 'x' variable"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
"sha1": "a62c5f0ceea3f103315aab7f595f0fc257690f46",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a1ce7a96169c9034dbc16807e754c5a58df0c0f8"
}
,{
"testCaseDescription": "javascript-var-declaration-delete-rest-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"delete": {
"start": [
1,
5
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' variable"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"end": [
1,
14
]
}
},
"summary": "Deleted the 'y' variable"
},
{
"span": {
"delete": {
"start": [
1,
16
],
"end": [
1,
17
]
}
},
"summary": "Deleted the 'z' variable"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
"sha1": "a1ce7a96169c9034dbc16807e754c5a58df0c0f8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "538d0fcee9f9f1163338901d5c7ec3035da370c4"
}]