Deterministic id factory for tests.
()
| 19 | |
| 20 | /** Deterministic id factory for tests. */ |
| 21 | function counterGenId(): GenId { |
| 22 | let n = 0 |
| 23 | return () => `id-${++n}` |
| 24 | } |
| 25 | |
| 26 | const fieldsById = (fields: DbField[]): Map<string, DbField> => |
| 27 | new Map(fields.map((f) => [f.id, f])) |
no outgoing calls
no test coverage detected