The code of d1-dump
Each module by folder, with its riskiest function by CRAP (complexity weighed against how much of it the tests run: over 30 is critical, over 5 worth watching) and its mutation score (the share of deliberate bugs its tests catch: under 60% is critical, under 80% worth watching). Choose a module for its functions and source.
DrDustinEdwards/d1-dump
Measured on 2026-10-23 at commit e15f966: 12 modules, 142 functions. By CRAP, 1 critical, 20 to watch and 121 ok. Mutation scores are from the run on 2026-10-19 at commit 523adba; 4 functions have changed since and show none until the next run.
Import cycles
None: no module imports itself, however indirectly.
| Module | Lines | Functions | Worst function | Mutation |
|---|---|---|---|---|
| backup.ts | 72 | 11 | WatchCRAP 9.1 | No data: no mutants in this code |
| cli.ts | 41 | 4 | CriticalCRAP 210 | Critical0% |
| cloudflare.ts | 77 | 13 | WatchCRAP 7.1 | Ok84.8% |
| drill.ts | 228 | 22 | WatchCRAP 21.9 | Watch76.8% |
| dump.ts | 184 | 10 | WatchCRAP 23 | Watch79.7% |
| index.ts | 46 | 0 | No functions | No data: no mutants in this code |
| node.ts | 98 | 26 | WatchCRAP 10 | Ok88.4% |
| r2.ts | 65 | 6 | WatchCRAP 7 | Watch74.5% |
| restore.ts | 112 | 18 | WatchCRAP 18 | Watch72.8% |
| runs.ts | 199 | 19 | WatchCRAP 15 | Watch77% |
| schema.ts | 101 | 13 | WatchCRAP 16 | Watch69.6% |
| types.ts | 28 | 0 | No functions | No data: no mutants in this code |