( ctx: Context.Context<never>, def: QueryDef, argsKey: string, result: Settled )
| 3559 | }) |
| 3560 | |
| 3561 | const isShipped = ( |
| 3562 | ctx: Context.Context<never>, |
| 3563 | def: QueryDef, |
| 3564 | argsKey: string, |
| 3565 | result: Settled |
| 3566 | ): boolean => { |
| 3567 | if (result._tag !== "Success") return false |
| 3568 | const shipped = Context.get(ctx, queryCore.Shipped)?.peek(def, argsKey) |
| 3569 | return shipped !== undefined && shipped.value === result.value && |
| 3570 | shipped.timestamp === result.timestamp |
| 3571 | } |
| 3572 | |
| 3573 | /** Checks a snapshot against the query's Schemas, the type parameters. */ |
| 3574 | const snapshotRun = (def: QueryDef, label: string, decoding: boolean) => { |
no test coverage detected