1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 22:01:46 +03:00
semantic/test/corpus/diff-summaries/javascript/nested-functions.json
2016-10-11 11:54:47 -04:00

369 lines
12 KiB
JSON

[{
"testCaseDescription": "javascript-nested-functions-insert-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "nested-functions.js",
"end": [
1,
103
]
}
},
"summary": "Added the 'parent' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
"sha1": "0ae77f84b193044495c0abfc49d346bde5e39414",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ef19570b8866d3b5832b07c94b679e61d4ed5a3d"
}
,{
"testCaseDescription": "javascript-nested-functions-replacement-insert-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "nested-functions.js",
"end": [
1,
103
]
}
},
"summary": "Added the 'parent' function",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "nested-functions.js",
"end": [
2,
103
]
}
},
"summary": "Added the 'parent' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
"sha1": "ef19570b8866d3b5832b07c94b679e61d4ed5a3d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bc194874e5e15edb201005aca9d7b8d4f711053f"
}
,{
"testCaseDescription": "javascript-nested-functions-delete-insert-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
"replace": [
{
"start": [
1,
74
],
"name": "nested-functions.js",
"end": [
1,
78
]
},
{
"start": [
1,
74
],
"name": "nested-functions.js",
"end": [
1,
78
]
}
]
},
"summary": "Replaced the 'arg1' identifier with the 'arg3' identifier in the console.log(arg3) method call of the 'child' function",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
93
],
"name": "nested-functions.js",
"end": [
1,
97
]
},
{
"start": [
1,
93
],
"name": "nested-functions.js",
"end": [
1,
97
]
}
]
},
"summary": "Replaced the 'arg2' identifier with the 'arg4' identifier in the console.log(arg4) method call of the 'child' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
"sha1": "bc194874e5e15edb201005aca9d7b8d4f711053f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "438e79efdd7784fa092f9832cc689141253b5295"
}
,{
"testCaseDescription": "javascript-nested-functions-replacement-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
"replace": [
{
"start": [
1,
74
],
"name": "nested-functions.js",
"end": [
1,
78
]
},
{
"start": [
1,
74
],
"name": "nested-functions.js",
"end": [
1,
78
]
}
]
},
"summary": "Replaced the 'arg3' identifier with the 'arg1' identifier in the console.log(arg1) method call of the 'child' function",
"tag": "JSONSummary"
},
{
"span": {
"replace": [
{
"start": [
1,
93
],
"name": "nested-functions.js",
"end": [
1,
97
]
},
{
"start": [
1,
93
],
"name": "nested-functions.js",
"end": [
1,
97
]
}
]
},
"summary": "Replaced the 'arg4' identifier with the 'arg2' identifier in the console.log(arg2) method call of the 'child' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
"sha1": "438e79efdd7784fa092f9832cc689141253b5295",
"gitDir": "test/corpus/repos/javascript",
"sha2": "32af107bcaea5a5ac4849198f2d6227b6015c709"
}
,{
"testCaseDescription": "javascript-nested-functions-delete-replacement-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "nested-functions.js",
"end": [
1,
103
]
}
},
"summary": "Deleted the 'parent' function",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"name": "nested-functions.js",
"end": [
2,
103
]
}
},
"summary": "Deleted the 'parent' function",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"name": "nested-functions.js",
"end": [
2,
103
]
}
},
"summary": "Added the 'parent' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
"sha1": "32af107bcaea5a5ac4849198f2d6227b6015c709",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b547ad567b2c5018f3f02b8dcacd63e2ae8cddc5"
}
,{
"testCaseDescription": "javascript-nested-functions-delete-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "nested-functions.js",
"end": [
1,
103
]
}
},
"summary": "Deleted the 'parent' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
"sha1": "b547ad567b2c5018f3f02b8dcacd63e2ae8cddc5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "38b78fc259d249ae1a83a38b5a610b1ea4ffd17b"
}
,{
"testCaseDescription": "javascript-nested-functions-delete-rest-test",
"expectedResult": {
"changes": {
"nested-functions.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "nested-functions.js",
"end": [
1,
103
]
}
},
"summary": "Deleted the 'parent' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"nested-functions.js"
],
"sha1": "38b78fc259d249ae1a83a38b5a610b1ea4ffd17b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f330b79e26d2268d24e9ee9ba1fbb1c94d816e65"
}]