mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
513 lines
16 KiB
JSON
513 lines
16 KiB
JSON
|
[{
|
||
|
"testCaseDescription": "javascript-var-declaration-insert-test",
|
||
|
"expectedResult": {
|
||
|
"changes": {
|
||
|
"var-declaration.js": [
|
||
|
{
|
||
|
"span": {
|
||
|
"that": {
|
||
|
"start": [
|
||
|
1,
|
||
|
5
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
10
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Added the 'x' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"errors": {}
|
||
|
},
|
||
|
"filePaths": [
|
||
|
"var-declaration.js"
|
||
|
],
|
||
|
"sha1": "9f1361ad761d81ff9d3b968ebeefa0f9640ae0ca",
|
||
|
"gitDir": "test/corpus/repos/javascript",
|
||
|
"sha2": "a8c2f82710f1241c44e40cee6ca80a095ea851e3"
|
||
|
}
|
||
|
,{
|
||
|
"testCaseDescription": "javascript-var-declaration-replacement-insert-test",
|
||
|
"expectedResult": {
|
||
|
"changes": {
|
||
|
"var-declaration.js": [
|
||
|
{
|
||
|
"span": {
|
||
|
"that": {
|
||
|
"start": [
|
||
|
1,
|
||
|
5
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
6
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Added the 'x' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
},
|
||
|
{
|
||
|
"span": {
|
||
|
"that": {
|
||
|
"start": [
|
||
|
1,
|
||
|
8
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
14
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Added the 'y' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
},
|
||
|
{
|
||
|
"span": {
|
||
|
"that": {
|
||
|
"start": [
|
||
|
1,
|
||
|
16
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
17
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Added the 'z' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
},
|
||
|
{
|
||
|
"span": {
|
||
|
"that": {
|
||
|
"start": [
|
||
|
2,
|
||
|
5
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
2,
|
||
|
10
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Added the 'x' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"errors": {}
|
||
|
},
|
||
|
"filePaths": [
|
||
|
"var-declaration.js"
|
||
|
],
|
||
|
"sha1": "a8c2f82710f1241c44e40cee6ca80a095ea851e3",
|
||
|
"gitDir": "test/corpus/repos/javascript",
|
||
|
"sha2": "43e3fc6013d5fc2f1db341fde7f4fe9ea060e7e1"
|
||
|
}
|
||
|
,{
|
||
|
"testCaseDescription": "javascript-var-declaration-delete-insert-test",
|
||
|
"expectedResult": {
|
||
|
"changes": {
|
||
|
"var-declaration.js": [
|
||
|
{
|
||
|
"span": {
|
||
|
"these": [
|
||
|
{
|
||
|
"start": [
|
||
|
1,
|
||
|
5
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
6
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"start": [
|
||
|
1,
|
||
|
5
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
10
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"summary": "Replaced the 'x' variable with the 'x' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
},
|
||
|
{
|
||
|
"span": {
|
||
|
"this": {
|
||
|
"start": [
|
||
|
1,
|
||
|
8
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
14
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Deleted the 'y' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
},
|
||
|
{
|
||
|
"span": {
|
||
|
"this": {
|
||
|
"start": [
|
||
|
1,
|
||
|
16
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
17
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Deleted the 'z' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"errors": {}
|
||
|
},
|
||
|
"filePaths": [
|
||
|
"var-declaration.js"
|
||
|
],
|
||
|
"sha1": "43e3fc6013d5fc2f1db341fde7f4fe9ea060e7e1",
|
||
|
"gitDir": "test/corpus/repos/javascript",
|
||
|
"sha2": "c3ea199c46ebfe632dad05ad20bdfb776835a9d5"
|
||
|
}
|
||
|
,{
|
||
|
"testCaseDescription": "javascript-var-declaration-replacement-test",
|
||
|
"expectedResult": {
|
||
|
"changes": {
|
||
|
"var-declaration.js": [
|
||
|
{
|
||
|
"span": {
|
||
|
"these": [
|
||
|
{
|
||
|
"start": [
|
||
|
1,
|
||
|
5
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
10
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"start": [
|
||
|
1,
|
||
|
5
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
6
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"summary": "Replaced the 'x' variable with the 'x' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
},
|
||
|
{
|
||
|
"span": {
|
||
|
"that": {
|
||
|
"start": [
|
||
|
1,
|
||
|
8
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
14
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Added the 'y' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
},
|
||
|
{
|
||
|
"span": {
|
||
|
"that": {
|
||
|
"start": [
|
||
|
1,
|
||
|
16
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
17
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Added the 'z' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"errors": {}
|
||
|
},
|
||
|
"filePaths": [
|
||
|
"var-declaration.js"
|
||
|
],
|
||
|
"sha1": "c3ea199c46ebfe632dad05ad20bdfb776835a9d5",
|
||
|
"gitDir": "test/corpus/repos/javascript",
|
||
|
"sha2": "70e0141884fe614c029ceab9cabb24ac689f8c50"
|
||
|
}
|
||
|
,{
|
||
|
"testCaseDescription": "javascript-var-declaration-delete-replacement-test",
|
||
|
"expectedResult": {
|
||
|
"changes": {
|
||
|
"var-declaration.js": [
|
||
|
{
|
||
|
"span": {
|
||
|
"this": {
|
||
|
"start": [
|
||
|
1,
|
||
|
5
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
6
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Deleted the 'x' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
},
|
||
|
{
|
||
|
"span": {
|
||
|
"this": {
|
||
|
"start": [
|
||
|
1,
|
||
|
8
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
14
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Deleted the 'y' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
},
|
||
|
{
|
||
|
"span": {
|
||
|
"this": {
|
||
|
"start": [
|
||
|
1,
|
||
|
16
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
17
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Deleted the 'z' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
},
|
||
|
{
|
||
|
"span": {
|
||
|
"this": {
|
||
|
"start": [
|
||
|
2,
|
||
|
5
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
2,
|
||
|
10
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Deleted the 'x' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
},
|
||
|
{
|
||
|
"span": {
|
||
|
"that": {
|
||
|
"start": [
|
||
|
2,
|
||
|
5
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
2,
|
||
|
6
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Added the 'x' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
},
|
||
|
{
|
||
|
"span": {
|
||
|
"that": {
|
||
|
"start": [
|
||
|
2,
|
||
|
8
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
2,
|
||
|
14
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Added the 'y' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
},
|
||
|
{
|
||
|
"span": {
|
||
|
"that": {
|
||
|
"start": [
|
||
|
2,
|
||
|
16
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
2,
|
||
|
17
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Added the 'z' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"errors": {}
|
||
|
},
|
||
|
"filePaths": [
|
||
|
"var-declaration.js"
|
||
|
],
|
||
|
"sha1": "70e0141884fe614c029ceab9cabb24ac689f8c50",
|
||
|
"gitDir": "test/corpus/repos/javascript",
|
||
|
"sha2": "f4ebb1027bebfbeacd6fbb4a6e1f16e2423ee62e"
|
||
|
}
|
||
|
,{
|
||
|
"testCaseDescription": "javascript-var-declaration-delete-test",
|
||
|
"expectedResult": {
|
||
|
"changes": {
|
||
|
"var-declaration.js": [
|
||
|
{
|
||
|
"span": {
|
||
|
"this": {
|
||
|
"start": [
|
||
|
1,
|
||
|
5
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
10
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Deleted the 'x' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"errors": {}
|
||
|
},
|
||
|
"filePaths": [
|
||
|
"var-declaration.js"
|
||
|
],
|
||
|
"sha1": "f4ebb1027bebfbeacd6fbb4a6e1f16e2423ee62e",
|
||
|
"gitDir": "test/corpus/repos/javascript",
|
||
|
"sha2": "e18b5c0b82a5bdf95e7977d7947e44d872d5abfc"
|
||
|
}
|
||
|
,{
|
||
|
"testCaseDescription": "javascript-var-declaration-delete-rest-test",
|
||
|
"expectedResult": {
|
||
|
"changes": {
|
||
|
"var-declaration.js": [
|
||
|
{
|
||
|
"span": {
|
||
|
"this": {
|
||
|
"start": [
|
||
|
1,
|
||
|
5
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
6
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Deleted the 'x' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
},
|
||
|
{
|
||
|
"span": {
|
||
|
"this": {
|
||
|
"start": [
|
||
|
1,
|
||
|
8
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
14
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Deleted the 'y' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
},
|
||
|
{
|
||
|
"span": {
|
||
|
"this": {
|
||
|
"start": [
|
||
|
1,
|
||
|
16
|
||
|
],
|
||
|
"name": "var-declaration.js",
|
||
|
"end": [
|
||
|
1,
|
||
|
17
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"summary": "Deleted the 'z' variable",
|
||
|
"tag": "JSONSummary"
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
"errors": {}
|
||
|
},
|
||
|
"filePaths": [
|
||
|
"var-declaration.js"
|
||
|
],
|
||
|
"sha1": "e18b5c0b82a5bdf95e7977d7947e44d872d5abfc",
|
||
|
"gitDir": "test/corpus/repos/javascript",
|
||
|
"sha2": "a67c36dee6afa77efd8005ab23227f683239d35e"
|
||
|
}]
|