MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / twin

Function twin

__tests__/explore-allocation-e2e.test.ts:842–854  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

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) => `
843export 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),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected