mirror of
https://github.com/github/semantic.git
synced 2024-12-22 06:11:49 +03:00
353 lines
11 KiB
JSON
353 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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"nested-functions.js"
|
|
],
|
|
"sha1": "d0057ff388e8070743e2f2922cff0d9b3a2ad5de",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4ac6b2869a5665de7edc7342598666e37dd1a139"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
103
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'parent' function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"nested-functions.js"
|
|
],
|
|
"sha1": "4ac6b2869a5665de7edc7342598666e37dd1a139",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "394a62ade20d4d86615aec875b6e77b67c610af0"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"nested-functions.js"
|
|
],
|
|
"sha1": "394a62ade20d4d86615aec875b6e77b67c610af0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7904f2aa3a357840ae49cbeb09842f4483d5b928"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"nested-functions.js"
|
|
],
|
|
"sha1": "7904f2aa3a357840ae49cbeb09842f4483d5b928",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f967788b85cc219d33d64545d8f1168ba3b43344"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
103
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'parent' function",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
103
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'parent' function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"nested-functions.js"
|
|
],
|
|
"sha1": "f967788b85cc219d33d64545d8f1168ba3b43344",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a2a9a7ac4e107169142641d24a73e66725e9db9b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-nested-functions-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"nested-functions.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
103
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'parent' function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"nested-functions.js"
|
|
],
|
|
"sha1": "a2a9a7ac4e107169142641d24a73e66725e9db9b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "49fdec7315d09e2ed03e0ae78e59593952d0b6d4"
|
|
}
|
|
,{
|
|
"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",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"nested-functions.js"
|
|
],
|
|
"sha1": "49fdec7315d09e2ed03e0ae78e59593952d0b6d4",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f49e31811346eb6451409e09e36f417aeeda390a"
|
|
}]
|