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
2016-10-11 16:18:26 -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": "af0eafa72dc7a6795507858b2c2f9ceee614de07",
"gitDir": "test/corpus/repos/javascript",
"sha2": "71935f67586876686341a26b8cb2a41794820a6f"
}
,{
"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": "71935f67586876686341a26b8cb2a41794820a6f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4ea4f4876b9375f13a68d7254ad672d07b722fdf"
}
,{
"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": "4ea4f4876b9375f13a68d7254ad672d07b722fdf",
"gitDir": "test/corpus/repos/javascript",
"sha2": "be32782b7ddcfa08396ac01c82e30bf7b1df40e7"
}
,{
"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": "be32782b7ddcfa08396ac01c82e30bf7b1df40e7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "550a976d210674327b23b298e527abe2b58dec79"
}
,{
"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": "550a976d210674327b23b298e527abe2b58dec79",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cfd77d1d21ca5a1425846fe50bc154ce78ad5e6f"
}
,{
"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": "cfd77d1d21ca5a1425846fe50bc154ce78ad5e6f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "75785663836095672233edd2495ec92237d0dbcc"
}
,{
"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": "75785663836095672233edd2495ec92237d0dbcc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "02b2a7bb2b9b4d27a06afbe6d147ca70e6eccf1a"
}]