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

Function answer

apps/cloud/src/auth/v2-import.test.ts:30–34  ·  view source on GitHub ↗
(read: string, value: A)

Source from the content-addressed store, hash-verified

28const sourceOf = (facts: Facts) => {
29 const reads: string[] = [];
30 const answer = <A>(read: string, value: A) =>
31 Effect.suspend(() => {
32 reads.push(read);
33 return facts.failing === read ? Effect.fail("unavailable") : Effect.succeed(value);
34 });
35 const source: V2ImportSource = {
36 emailVerified: (userId) => {
37 expect(userId).toBe(USER);

Callers 2

sourceOfFunction · 0.70
autumnAnswersFunction · 0.70

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected