(expr: unknown, name: string)
| 77 | |
| 78 | // Helper to recursively count operators in an expression |
| 79 | function countOperators(expr: unknown, name: string): number { |
| 80 | if (!isFunc(expr)) return 0 |
| 81 | const selfCount = expr.name === name ? 1 : 0 |
| 82 | return ( |
| 83 | selfCount + |
| 84 | expr.args.reduce((sum, arg) => sum + countOperators(arg, name), 0) |
| 85 | ) |
| 86 | } |
| 87 | |
| 88 | describe(`buildCursor property-based tests`, () => { |
| 89 | describe(`empty input handling`, () => { |
no test coverage detected