MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / makeCounting

Function makeCounting

packages/core/sdk/src/hosted-http-client.test.ts:777–787  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

775 // makes this shared — keeps every other cache test green.
776 it("keeps one adapter's cached resolutions out of another's", async () => {
777 const makeCounting = () => {
778 const resolved: string[] = [];
779 const hostedFetch = makeHostedFetch({
780 fetch: async () => new Response("ok"),
781 resolveHostname: async (hostname) => {
782 resolved.push(hostname);
783 return [{ address: "93.184.216.34" }];
784 },
785 });
786 return { hostedFetch, resolved };
787 };
788
789 const first = makeCounting();
790 const second = makeCounting();

Callers 1

Calls 2

makeHostedFetchFunction · 0.90
pushMethod · 0.80

Tested by

no test coverage detected