(bytes: Uint8Array)
| 15 | |
| 16 | const hex = (bytes: Uint8Array) => Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("") |
| 17 | const uuidString = (bytes: Uint8Array) => hex(bytes).replace(/^(.{8})(.{4})(.{4})(.{4})/, "$1-$2-$3-$4-") |
| 18 | const isStrictlyIncreasing = (ids: ReadonlyArray<string>) => ids.every((id, i) => i === 0 || ids[i - 1] < id) |
| 19 | |
| 20 | const assertDies = <A>(exit: Exit.Exit<A>) => assert.isTrue(Exit.isFailure(exit) && Cause.hasDies(exit.cause)) |
no test coverage detected