1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/javascript/nested-functions.json
2016-11-01 10:03:25 -05: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": "d2246a50ed33ef4c748bfdaf80bbf4eb41cc6c57",
"gitDir": "test/corpus/repos/javascript",
"sha2": "63ff6752030c14e33484d0d26272a4de396b237d"
}
,{
"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": "63ff6752030c14e33484d0d26272a4de396b237d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d4d0acb878a952ab891609248be8ca565048582e"
}
,{
"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": "d4d0acb878a952ab891609248be8ca565048582e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c834e67b0218be43f52524993748a6eef26556cc"
}
,{
"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": "c834e67b0218be43f52524993748a6eef26556cc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "85df5ab1b8a75302dfa8dcafc32613bc6062fc6f"
}
,{
"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": "85df5ab1b8a75302dfa8dcafc32613bc6062fc6f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d0f03610458a0d43ff3d131dd2ac8b7cd00b6d39"
}
,{
"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": "d0f03610458a0d43ff3d131dd2ac8b7cd00b6d39",
"gitDir": "test/corpus/repos/javascript",
"sha2": "db08f5d444e81130894b841385b1aded9720a6f5"
}
,{
"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": "db08f5d444e81130894b841385b1aded9720a6f5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e01da1d7da05b823873a3d54668f908216c92694"
}]