1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/var-declaration.json
2016-10-11 12:52:26 -04:00

513 lines
17 KiB
JSON

[{
"testCaseDescription": "javascript-var-declaration-insert-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"insert": {
"start": [
1,
5
],
"filepath": "var-declaration.js",
"end": [
1,
10
]
}
},
"summary": "Added the 'x' variable",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
"sha1": "286453a00dbe069dc12fae9b6fdb767b1cdfa85d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9964f50f7b7ff17f32f2231df9d29ad3085c6fcd"
}
,{
"testCaseDescription": "javascript-var-declaration-replacement-insert-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"insert": {
"start": [
1,
5
],
"filepath": "var-declaration.js",
"end": [
1,
6
]
}
},
"summary": "Added the 'x' variable",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
1,
8
],
"filepath": "var-declaration.js",
"end": [
1,
14
]
}
},
"summary": "Added the 'y' variable",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
1,
16
],
"filepath": "var-declaration.js",
"end": [
1,
17
]
}
},
"summary": "Added the 'z' variable",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
5
],
"filepath": "var-declaration.js",
"end": [
2,
10
]
}
},
"summary": "Added the 'x' variable",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
"sha1": "9964f50f7b7ff17f32f2231df9d29ad3085c6fcd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6c33b4385e09a649d8d4198328e67bc4aa58f2df"
}
,{
"testCaseDescription": "javascript-var-declaration-delete-insert-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"replace": [
{
"start": [
1,
5
],
"filepath": "var-declaration.js",
"end": [
1,
6
]
},
{
"start": [
1,
5
],
"filepath": "var-declaration.js",
"end": [
1,
10
]
}
]
},
"summary": "Replaced the 'x' variable with the 'x' variable",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"filepath": "var-declaration.js",
"end": [
1,
14
]
}
},
"summary": "Deleted the 'y' variable",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
1,
16
],
"filepath": "var-declaration.js",
"end": [
1,
17
]
}
},
"summary": "Deleted the 'z' variable",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
"sha1": "6c33b4385e09a649d8d4198328e67bc4aa58f2df",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9d343f4bc1a5a06ac722b86c20d7523464a5d1a1"
}
,{
"testCaseDescription": "javascript-var-declaration-replacement-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"replace": [
{
"start": [
1,
5
],
"filepath": "var-declaration.js",
"end": [
1,
10
]
},
{
"start": [
1,
5
],
"filepath": "var-declaration.js",
"end": [
1,
6
]
}
]
},
"summary": "Replaced the 'x' variable with the 'x' variable",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
1,
8
],
"filepath": "var-declaration.js",
"end": [
1,
14
]
}
},
"summary": "Added the 'y' variable",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
1,
16
],
"filepath": "var-declaration.js",
"end": [
1,
17
]
}
},
"summary": "Added the 'z' variable",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
"sha1": "9d343f4bc1a5a06ac722b86c20d7523464a5d1a1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "21b11bcf9b44e07c4f73f1a98be424cb09248151"
}
,{
"testCaseDescription": "javascript-var-declaration-delete-replacement-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"delete": {
"start": [
1,
5
],
"filepath": "var-declaration.js",
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' variable",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"filepath": "var-declaration.js",
"end": [
1,
14
]
}
},
"summary": "Deleted the 'y' variable",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
1,
16
],
"filepath": "var-declaration.js",
"end": [
1,
17
]
}
},
"summary": "Deleted the 'z' variable",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
5
],
"filepath": "var-declaration.js",
"end": [
2,
10
]
}
},
"summary": "Deleted the 'x' variable",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
5
],
"filepath": "var-declaration.js",
"end": [
2,
6
]
}
},
"summary": "Added the 'x' variable",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
8
],
"filepath": "var-declaration.js",
"end": [
2,
14
]
}
},
"summary": "Added the 'y' variable",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
16
],
"filepath": "var-declaration.js",
"end": [
2,
17
]
}
},
"summary": "Added the 'z' variable",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
"sha1": "21b11bcf9b44e07c4f73f1a98be424cb09248151",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0958b2b4ff0668da06b8aba0390576578c38e4c5"
}
,{
"testCaseDescription": "javascript-var-declaration-delete-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"delete": {
"start": [
1,
5
],
"filepath": "var-declaration.js",
"end": [
1,
10
]
}
},
"summary": "Deleted the 'x' variable",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
"sha1": "0958b2b4ff0668da06b8aba0390576578c38e4c5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d28f4dbd6d9c8393afddbba5a65333ed9569fcdc"
}
,{
"testCaseDescription": "javascript-var-declaration-delete-rest-test",
"expectedResult": {
"changes": {
"var-declaration.js": [
{
"span": {
"delete": {
"start": [
1,
5
],
"filepath": "var-declaration.js",
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' variable",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"filepath": "var-declaration.js",
"end": [
1,
14
]
}
},
"summary": "Deleted the 'y' variable",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
1,
16
],
"filepath": "var-declaration.js",
"end": [
1,
17
]
}
},
"summary": "Deleted the 'z' variable",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"var-declaration.js"
],
"sha1": "d28f4dbd6d9c8393afddbba5a65333ed9569fcdc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a10e3508064d97ccd29932d234c261891413b8f1"
}]