(context, commandName)
| 542 | } |
| 543 | |
| 544 | function isTestRunnerCommand(context, commandName) { |
| 545 | const testRunnerContext = context.testRunner; |
| 546 | |
| 547 | let methods = new Set(); |
| 548 | let object = testRunnerContext; |
| 549 | while (object !== Object.prototype) { |
| 550 | Object.getOwnPropertyNames(object) |
| 551 | .filter(prop => typeof object[prop] === class="st">'function' && prop !== class="st">'constructor') |
| 552 | .map(prop => methods.add(prop)); |
| 553 | |
| 554 | object = Object.getPrototypeOf(object); |
| 555 | } |
| 556 | |
| 557 | return methods.has(commandName); |
| 558 | } |
| 559 | |
| 560 | function extractBulkRequests(requests) { |
| 561 | return requests.map(request => ({ [request.name]: request.arguments })); |
no test coverage detected