1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/javascript/nested-functions.json
2016-10-13 18:02:14 -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": "5f2fcbf698ced64bbf9838fcaffe1f9e16bcd25d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "289611d46d1853b6408423d260038d489f0e3e9d"
}
,{
"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": "289611d46d1853b6408423d260038d489f0e3e9d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "350476e306bfce403a33b825b0781061d016e1a8"
}
,{
"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": "350476e306bfce403a33b825b0781061d016e1a8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b2211f880a5e9f4d41b929901d01e4d98044d507"
}
,{
"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": "b2211f880a5e9f4d41b929901d01e4d98044d507",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0d2126d47656bcb6f1ce2ca1aebb6afa84575d47"
}
,{
"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": "0d2126d47656bcb6f1ce2ca1aebb6afa84575d47",
"gitDir": "test/corpus/repos/javascript",
"sha2": "25d417cd7e815b23ac9fdf139a12f3386df8ade1"
}
,{
"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": "25d417cd7e815b23ac9fdf139a12f3386df8ade1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7f7efb3fe8e90399b642b293fa6128e2f5c99a65"
}
,{
"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": "7f7efb3fe8e90399b642b293fa6128e2f5c99a65",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1b10f4afdd01b8dc19287f5e87bc3130a1a699f1"
}]