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

Function block

__tests__/ui-program-model.test.ts:270–270  ·  view source on GitHub ↗
(over: Partial<Extract<WireItem, { kind: 'block' }>>)

Source from the content-addressed store, hash-verified

268 it('names each kind of run', () => {
269 const via = { id: 'f', kind: 'function' as const, name: 'gen', qualifiedName: 'gen', file: 'a.js', line: 1, endLine: 2, language: 'javascript', test: false };
270 const block = (over: Partial<Extract<WireItem, { kind: 'block' }>>) => runWords({ kind: 'block', block: 'inline', body: [], ...over } as Extract<WireItem, { kind: 'block' }>);
271 expect(block({ via })).toBe('via gen');
272 expect(block({})).toBe('via a helper');
273 expect(block({ block: 'later', by: 'then' })).toBe('later · then');

Callers 2

trailingFunction · 0.50

Calls 1

runWordsFunction · 0.90

Tested by

no test coverage detected