MCPcopy
hub / github.com/xtermjs/xterm.js / parseP

Method parseP

src/common/InputHandler.test.ts:50–56  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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
59describe('InputHandler', () => {

Callers 2

resetToBaseStateFunction · 0.80

Calls 1

parseMethod · 0.65

Tested by

no test coverage detected