mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
317 lines
9.8 KiB
JSON
317 lines
9.8 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-this-expression-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"this-expression.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "this-expression.js",
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"this-expression.js"
|
|
],
|
|
"sha1": "bd9d0d22b6a226d63e44c3d654b6b618571f9912",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9ba0c75c5bc20d8688f51043a458e7d82edf66a7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-this-expression-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"this-expression.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "this-expression.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this' return statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "this-expression.js",
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"this-expression.js"
|
|
],
|
|
"sha1": "9ba0c75c5bc20d8688f51043a458e7d82edf66a7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6cfe274ee77cd487431fb7a29d6d50cd69ba2582"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-this-expression-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"this-expression.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "this-expression.js",
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "this-expression.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this' return statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"this-expression.js"
|
|
],
|
|
"sha1": "6cfe274ee77cd487431fb7a29d6d50cd69ba2582",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b03e7c6b77cb36d5bfb953572c32ba9b62fb8f3a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-this-expression-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"this-expression.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "this-expression.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this' return statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "this-expression.js",
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"this-expression.js"
|
|
],
|
|
"sha1": "b03e7c6b77cb36d5bfb953572c32ba9b62fb8f3a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "1185333888454aa1868abff45e6110880d636cbe"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-this-expression-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"this-expression.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "this-expression.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this' return statement",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "this-expression.js",
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "this-expression.js",
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this' return statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"this-expression.js"
|
|
],
|
|
"sha1": "1185333888454aa1868abff45e6110880d636cbe",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "25b9db8ff255f1f8f8a4b47d7f306a274716fe69"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-this-expression-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"this-expression.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "this-expression.js",
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"this-expression.js"
|
|
],
|
|
"sha1": "25b9db8ff255f1f8f8a4b47d7f306a274716fe69",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "381b83d600c8fb17c6fa5ae19c28dd3e02598c84"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-this-expression-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"this-expression.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "this-expression.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this' return statement",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"this-expression.js"
|
|
],
|
|
"sha1": "381b83d600c8fb17c6fa5ae19c28dd3e02598c84",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "704c62da36013859dd8e6a1139c4d908e22bc980"
|
|
}]
|