mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
297 lines
9.3 KiB
JSON
297 lines
9.3 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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"generator-function.js"
|
|
],
|
|
"sha1": "4e58cc6cacea1897b6ba0b9d766f0ba965b0c8fa",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "18a0e0a3a3ce01a9032d344cc27e74ceb4ca309f"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
59
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'generateStuff' function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"generator-function.js"
|
|
],
|
|
"sha1": "18a0e0a3a3ce01a9032d344cc27e74ceb4ca309f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "23285112861e1d2fe617efdb23c5d51bf4075224"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"generator-function.js"
|
|
],
|
|
"sha1": "23285112861e1d2fe617efdb23c5d51bf4075224",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3cd99e8cbe1ba540886b65b6921ec1cf01fb79ca"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"generator-function.js"
|
|
],
|
|
"sha1": "3cd99e8cbe1ba540886b65b6921ec1cf01fb79ca",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "afe62cf42a38e09a30d1e289c2197445039c4d8b"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
59
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'generateStuff' function",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
62
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'generateNewStuff' function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"generator-function.js"
|
|
],
|
|
"sha1": "afe62cf42a38e09a30d1e289c2197445039c4d8b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b8554280a32f48d22eff39b921432c8148f2e602"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-generator-function-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"generator-function.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
59
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'generateStuff' function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"generator-function.js"
|
|
],
|
|
"sha1": "b8554280a32f48d22eff39b921432c8148f2e602",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "015cdf9ee2145bcf4de97926d0df3d30f5f4b23e"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"generator-function.js"
|
|
],
|
|
"sha1": "015cdf9ee2145bcf4de97926d0df3d30f5f4b23e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "bb0f797d0ecd6410261347f4bb4a9d7ec2dbd9e8"
|
|
}]
|