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

Function consumer

__tests__/store-binding-cache.test.ts:15–27  ·  view source on GitHub ↗
(active: boolean)

Source from the content-addressed store, hash-verified

13});
14
15function consumer(active: boolean): string {
16 return `import { useStore as current } from './store';
17export function run() {
18 const { reset } = ${active ? 'current.getState()' : 'external()'};
19 reset();
20 reset();
21}
22export function effects(client: any) {
23 client.user.create();
24 client?.user?.create();
25}
26`;
27}
28
29async function project(active: boolean) {
30 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-store-cache-'));

Callers 2

projectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected