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

Function twin

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

Source from the content-addressed store, hash-verified

847 // candidate carries the same weight, so the split divides by a denominator
848 // that is entirely made of ties.
849 const twin = (n: number) => `
850export class InventoryLedger${n} {
851 private rows: number[] = [];
852
853 public recordInventoryMovement(quantity: number): void {
854 this.rows.push(quantity);
855 }
856
857 public settleInventoryLedger(): number {
858 return this.rows.reduce((sum, row) => sum + row, 0);
859 }
860}
861`;
862 project = await buildProject('codegraph-alloc-degenerate-', {
863 'src/ledger/one.ts': twin(1),
864 'src/ledger/two.ts': twin(2),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected