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

Function addressOf

e2e/cloud/telemetry-contract.test.ts:123–130  ·  view source on GitHub ↗
(op: string)

Source from the content-addressed store, hash-verified

121
122 const tools = yield* client.tools.list({ query: {} });
123 const addressOf = (op: string) => {
124 const tool = tools.find(
125 (entry) =>
126 String(entry.integration) === String(slug) && String(entry.address).endsWith(`.${op}`),
127 );
128 expect(tool, `the ${op} tool is in the catalog`).toBeDefined();
129 return String(tool!.address);
130 };
131 const failAddress = addressOf("fail");
132 const okAddress = addressOf("ok");
133

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected