MCPcopy Index your code
hub / github.com/datner/react-effect / causesN

Function causesN

test/utils/cause.ts:38–46  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

36 }
37
38 const causesN = (n: number): fc.Arbitrary<Cause.Cause<E>> => {
39 if (n === 1) {
40 return fc.oneof(empty, failure, die, interrupt)
41 }
42 if (n === 2) {
43 return annotated(n)
44 }
45 return fc.oneof(annotated(n), sequential(n), parallel(n))
46 }
47
48 return causesN(n)
49}

Callers 4

annotatedFunction · 0.85
sequentialFunction · 0.85
parallelFunction · 0.85
causesArbFunction · 0.85

Calls 3

annotatedFunction · 0.85
sequentialFunction · 0.85
parallelFunction · 0.85

Tested by

no test coverage detected