MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / record

Function record

graph-ui/src/projects/ProjectsPanel.test.tsx:50–53  ·  view source on GitHub ↗
(name: string, impl: (...args: never[]) => T)

Source from the content-addressed store, hash-verified

48function fakeSource(jobs: () => IndexJob[] = () => []): ProjectsSource & { calls: Record<string, unknown[][]> } {
49 const calls: Record<string, unknown[][]> = {};
50 const record = <T,>(name: string, impl: (...args: never[]) => T) => (...args: never[]): T => {
51 (calls[name] ??= []).push(args);
52 return impl(...args);
53 };
54 return {
55 calls,
56 listProjects: record('listProjects', async () => PROJECTS),

Callers 1

fakeSourceFunction · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected