(n: number)
| 840 | // candidate carries the same weight, so the split divides by a denominator |
| 841 | // that is entirely made of ties. |
| 842 | const twin = (n: number) => ` |
| 843 | export class InventoryLedger${n} { |
| 844 | private rows: number[] = []; |
| 845 | |
| 846 | public recordInventoryMovement(quantity: number): void { |
| 847 | this.rows.push(quantity); |
| 848 | } |
| 849 | |
| 850 | public settleInventoryLedger(): number { |
| 851 | return this.rows.reduce((sum, row) => sum + row, 0); |
| 852 | } |
| 853 | } |
| 854 | `; |
| 855 | project = await buildProject('codegraph-alloc-degenerate-', { |
| 856 | 'src/ledger/one.ts': twin(1), |
| 857 | 'src/ledger/two.ts': twin(2), |
no outgoing calls
no test coverage detected