mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
309 lines
9.6 KiB
JSON
309 lines
9.6 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-identifier-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"identifier.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'theVar' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"identifier.js"
|
|
],
|
|
"sha1": "e8164f9a5c7441db5367d1dee13694204e67e3ab",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "75e27ff4b3c70434eef42d3170bdb9c7a2a60c28"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-identifier-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"identifier.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'theVar2' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'theVar' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"identifier.js"
|
|
],
|
|
"sha1": "75e27ff4b3c70434eef42d3170bdb9c7a2a60c28",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "509a9a37149c0bd5c34b27441ca3ba82bd52dda5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-identifier-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"identifier.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'theVar2' identifier with the 'theVar' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"identifier.js"
|
|
],
|
|
"sha1": "509a9a37149c0bd5c34b27441ca3ba82bd52dda5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2be41e7a7f6e3a2785ef78f40060a416a23d781b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-identifier-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"identifier.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'theVar' identifier with the 'theVar2' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"identifier.js"
|
|
],
|
|
"sha1": "2be41e7a7f6e3a2785ef78f40060a416a23d781b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6f0f8d55da8aa3a8296d008487484829f7d2bf3a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-identifier-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"identifier.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'theVar2' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
2,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'theVar' identifier",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
2,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'theVar2' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"identifier.js"
|
|
],
|
|
"sha1": "6f0f8d55da8aa3a8296d008487484829f7d2bf3a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b7213ebdf5760f71f68072eefbe4e96553daef8c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-identifier-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"identifier.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'theVar' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"identifier.js"
|
|
],
|
|
"sha1": "b7213ebdf5760f71f68072eefbe4e96553daef8c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "83da588f6151bb142adfe665a6b24c76d754571c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-identifier-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"identifier.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "identifier.js",
|
|
"end": [
|
|
1,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'theVar2' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"identifier.js"
|
|
],
|
|
"sha1": "83da588f6151bb142adfe665a6b24c76d754571c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "bd9d0d22b6a226d63e44c3d654b6b618571f9912"
|
|
}]
|