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/nested-functions.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -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": "2ae3dbb197d2af3f6c733f583bd1e46038782da2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "475ee7ae5eff4e56bc226ad3a2486038d50a5e95"
}
,{
"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": "475ee7ae5eff4e56bc226ad3a2486038d50a5e95",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0c3acc500894a5961a872157c95fed200762da9d"
}
,{
"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": "0c3acc500894a5961a872157c95fed200762da9d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "48b340e7b3bd54aa35e2fdf9d2bb87bdd7afdf4e"
}
,{
"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": "48b340e7b3bd54aa35e2fdf9d2bb87bdd7afdf4e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b014c105d8a719941c687729832424442fe1c43b"
}
,{
"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": "b014c105d8a719941c687729832424442fe1c43b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "dc09f8bb5cd29d5f1e434aed0d708564ed8abccc"
}
,{
"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": "dc09f8bb5cd29d5f1e434aed0d708564ed8abccc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "11d324408c3f978fe3e75706ed5c396d1d0c249b"
}
,{
"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": "11d324408c3f978fe3e75706ed5c396d1d0c249b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2a887b5d06f807f64eb0441bf4a29ca83e919096"
}]