(syncOnly)
| 18 | } |
| 19 | |
| 20 | async run(syncOnly) { |
| 21 | const result = { |
| 22 | sync: {}, |
| 23 | async: {}, |
| 24 | intercept: {} |
| 25 | }; |
| 26 | |
| 27 | if (syncOnly) { |
| 28 | await this.runSync(result.sync, "call"); |
| 29 | } else { |
| 30 | await this.runAsync(result.async, "callAsync"); |
| 31 | await this.runAsync(result.async, "promise"); |
| 32 | |
| 33 | await this.runIntercept(result.intercept, "callAsync"); |
| 34 | await this.runIntercept(result.intercept, "promise"); |
| 35 | } |
| 36 | |
| 37 | await this.runSync(result.sync, "callAsync"); |
| 38 | await this.runSync(result.sync, "promise"); |
| 39 | |
| 40 | return result; |
| 41 | } |
| 42 | |
| 43 | async runForLoop(syncOnly) { |
| 44 | const result = { |
no test coverage detected