1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/nested-functions.json
2016-10-14 12:19:31 -04:00

341 lines
11 KiB
JSON

[{
"testCaseDescription": "javascript-nested-functions-insert-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
103
]
}
},
"summary": "Added the 'parent' function"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
"sha1": "61b914ee8f95319311ab2a31fd2ad953cafb16fa",
"gitDir": "test/corpus/repos/javascript",
"sha2": "07887ecc86dddee8229a8d08ee8dcc6d7572121f"
}
,{
"testCaseDescription": "javascript-nested-functions-replacement-insert-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
103
]
}
},
"summary": "Added the 'parent' function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
103
]
}
},
"summary": "Added the 'parent' function"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
"sha1": "07887ecc86dddee8229a8d08ee8dcc6d7572121f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "61c06e9efa18663594722716e58aa64e5ffd4758"
}
,{
"testCaseDescription": "javascript-nested-functions-delete-insert-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
"replace": [
{
"start": [
1,
74
],
"end": [
1,
78
]
},
{
"start": [
1,
74
],
"end": [
1,
78
]
}
]
},
"summary": "Replaced the 'arg1' identifier with the 'arg3' identifier in the console.log(arg3) method call of the 'child' function"
},
{
"span": {
"replace": [
{
"start": [
1,
93
],
"end": [
1,
97
]
},
{
"start": [
1,
93
],
"end": [
1,
97
]
}
]
},
"summary": "Replaced the 'arg2' identifier with the 'arg4' identifier in the console.log(arg4) method call of the 'child' function"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
"sha1": "61c06e9efa18663594722716e58aa64e5ffd4758",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a020ecc7347999e4b5a89e698dea818a58cbf947"
}
,{
"testCaseDescription": "javascript-nested-functions-replacement-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
"replace": [
{
"start": [
1,
74
],
"end": [
1,
78
]
},
{
"start": [
1,
74
],
"end": [
1,
78
]
}
]
},
"summary": "Replaced the 'arg3' identifier with the 'arg1' identifier in the console.log(arg1) method call of the 'child' function"
},
{
"span": {
"replace": [
{
"start": [
1,
93
],
"end": [
1,
97
]
},
{
"start": [
1,
93
],
"end": [
1,
97
]
}
]
},
"summary": "Replaced the 'arg4' identifier with the 'arg2' identifier in the console.log(arg2) method call of the 'child' function"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
"sha1": "a020ecc7347999e4b5a89e698dea818a58cbf947",
"gitDir": "test/corpus/repos/javascript",
"sha2": "649807091c5b98fb7b727a3442047b3d82cffc94"
}
,{
"testCaseDescription": "javascript-nested-functions-delete-replacement-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
103
]
}
},
"summary": "Deleted the 'parent' function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
103
]
}
},
"summary": "Deleted the 'parent' function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
103
]
}
},
"summary": "Added the 'parent' function"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
"sha1": "649807091c5b98fb7b727a3442047b3d82cffc94",
"gitDir": "test/corpus/repos/javascript",
"sha2": "66d77629efe8fd4035a9cb5209fd9f60450b44f6"
}
,{
"testCaseDescription": "javascript-nested-functions-delete-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
103
]
}
},
"summary": "Deleted the 'parent' function"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
"sha1": "66d77629efe8fd4035a9cb5209fd9f60450b44f6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "10164d0894b9f540b2def25a8f283bcaed45ec99"
}
,{
"testCaseDescription": "javascript-nested-functions-delete-rest-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
103
]
}
},
"summary": "Deleted the 'parent' function"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
"sha1": "10164d0894b9f540b2def25a8f283bcaed45ec99",
"gitDir": "test/corpus/repos/javascript",
"sha2": "266ec1f139daf92a206089f050ad57c325ce813c"
}]