(msg: string, node: any)
| 591 | |
| 592 | // deno-lint-ignore no-explicit-any |
| 593 | export function error(msg: string, node: any): never { |
| 594 | if (node.loc) { |
| 595 | const { start, end } = node.loc; |
| 596 | throw new Error(`test.ts:${start.line}:${start.column + 1}-${end.line}:${end.column + 1} ${msg}`); |
| 597 | } else { |
| 598 | throw new Error(msg); |
| 599 | } |
| 600 | } |
| 601 | |
| 602 | // deno-lint-ignore no-explicit-any |
| 603 | export function generateTestUtils(typecheck: (code: any) => Type) { |
no outgoing calls
no test coverage detected