MCPcopy Create free account
hub / github.com/EvoMap/evolver / fn

Function fn

test/routerFeatureFlag.test.js:12–21  ·  view source on GitHub ↗
(reqPath, body, opts)

Source from the content-addressed store, hash-verified

10function makeStubProxy() {
11 const calls = [];
12 const fn = async (reqPath, body, opts) => {
13 calls.push({ reqPath, body, opts });
14 return {
15 status: 200,
16 headers: { 'content-type': 'application/json' },
17 stream: null,
18 json: async () => ({ id: 'msg_1', model: body && body.model, content: [] }),
19 text: async () => '',
20 };
21 };
22 return { fn, calls };
23}
24

Callers 15

withFetchMockFunction · 0.70
withModelEnvFunction · 0.70
withClearedHostEnvFunction · 0.70
withHubEnvFunction · 0.70
withEnvFunction · 0.70
withFixedNowFunction · 0.70
withFixtureAppdataFunction · 0.70
withEnvFunction · 0.70
withClearedHostEnvFunction · 0.70
withEnvFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected