* Promise based parse call to await the full resolve of given input data. * This is useful to test async handlers in inputhandler directly.
(data: string | Uint8Array)
| 48 | * This is useful to test async handlers in inputhandler directly. |
| 49 | */ |
| 50 | public async parseP(data: string | Uint8Array): Promise<void> { |
| 51 | let result: Promise<boolean> | void; |
| 52 | let prev: boolean | undefined; |
| 53 | while (result = this.parse(data, prev)) { |
| 54 | prev = await result; |
| 55 | } |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | describe('InputHandler', () => { |
no test coverage detected