mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
287 lines
8.9 KiB
JSON
287 lines
8.9 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-generator-function-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"generator-function.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
59
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'generateStuff' function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"generator-function.js"
|
|
],
|
|
"sha1": "6f86c3aa782a2bff143e0da2419cb62a9745cd22",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8333af7e424736e3c5581b700ae4ad7034866a86"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-generator-function-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"generator-function.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
62
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'generateNewStuff' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
59
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'generateStuff' function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"generator-function.js"
|
|
],
|
|
"sha1": "8333af7e424736e3c5581b700ae4ad7034866a86",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "42dbe6e86ddd9bcbc32883ff86c4c9fba4cfc3ef"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-generator-function-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"generator-function.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
11
|
|
],
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
11
|
|
],
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'generateNewStuff' identifier with the 'generateStuff' identifier in the generateStuff function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"generator-function.js"
|
|
],
|
|
"sha1": "42dbe6e86ddd9bcbc32883ff86c4c9fba4cfc3ef",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f22458c44385318ccbf22fbeab3a7581e5de9b9f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-generator-function-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"generator-function.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
11
|
|
],
|
|
"end": [
|
|
1,
|
|
24
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
11
|
|
],
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'generateStuff' identifier with the 'generateNewStuff' identifier in the generateNewStuff function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"generator-function.js"
|
|
],
|
|
"sha1": "f22458c44385318ccbf22fbeab3a7581e5de9b9f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fc872ff28c661e88eb34b50f137b652f83eeaacf"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-generator-function-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"generator-function.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
62
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'generateNewStuff' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
59
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'generateStuff' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
62
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'generateNewStuff' function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"generator-function.js"
|
|
],
|
|
"sha1": "fc872ff28c661e88eb34b50f137b652f83eeaacf",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c51191686e1a8430faa6415b951f8a452f6a4cf0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-generator-function-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"generator-function.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
59
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'generateStuff' function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"generator-function.js"
|
|
],
|
|
"sha1": "c51191686e1a8430faa6415b951f8a452f6a4cf0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "15f7c02a78058e416ba6c6d26b1c9b33ce5dd9b1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-generator-function-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"generator-function.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
62
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'generateNewStuff' function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"generator-function.js"
|
|
],
|
|
"sha1": "15f7c02a78058e416ba6c6d26b1c9b33ce5dd9b1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "060fdfdbf65d370eafe6d94f01d62a2c1be7ed76"
|
|
}]
|