1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/generator-function.json
2016-10-13 17:58:17 -04:00

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": "e50819c8122605cccb7de37d2f34c2cb88ae89bf",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ffc6b6caebe69eb74155c504457a9fde56ece199"
}
,{
"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": "ffc6b6caebe69eb74155c504457a9fde56ece199",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d06e9a61178414b50e65459f2c7ec6b132fdfc37"
}
,{
"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": "d06e9a61178414b50e65459f2c7ec6b132fdfc37",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1d2fa9c0eec4c0cd151576962a20ee97b9f57c40"
}
,{
"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": "1d2fa9c0eec4c0cd151576962a20ee97b9f57c40",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d61b8f4f54cb9eaa7b8dd09c349b76aeecfb9b1c"
}
,{
"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": "d61b8f4f54cb9eaa7b8dd09c349b76aeecfb9b1c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "dd56bf7587cdaad5e3cea48aed1b1d08e5ee900f"
}
,{
"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": "dd56bf7587cdaad5e3cea48aed1b1d08e5ee900f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2b3e0020597b6ce463242b021d0db67d4e1dd1c4"
}
,{
"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": "2b3e0020597b6ce463242b021d0db67d4e1dd1c4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "620971f6351cafd62ee9baee2913dd3596b8189a"
}]