(msecs: number, event = "Repro", primaryKey = "key", tail?: number)
| 25 | // `tail` fixes the random id bytes, so entries sharing a millisecond sort in a |
| 26 | // known order by id. |
| 27 | const entry = (msecs: number, event = "Repro", primaryKey = "key", tail?: number) => { |
| 28 | const id = EventJournal.makeEntryIdUnsafe({ msecs }) |
| 29 | if (tail !== undefined) id.fill(tail, 6) |
| 30 | return new EventJournal.Entry({ |
| 31 | id, |
| 32 | event, |
| 33 | primaryKey, |
| 34 | payload: new Uint8Array() |
| 35 | }, { disableChecks: true }) |
| 36 | } |
| 37 | |
| 38 | const localEntry = (primaryKey: string) => ({ event: "Repro", primaryKey, payload: new Uint8Array() }) |
| 39 |
no test coverage detected