MCPcopy Create free account
hub / github.com/datner/react-effect / resultArb

Function resultArb

test/utils/result.ts:15–18  ·  view source on GitHub ↗
(
  value: fc.Arbitrary<A>,
  error: fc.Arbitrary<E>
)

Source from the content-addressed store, hash-verified

13 value: fc.Arbitrary<A>,
14 error: fc.Arbitrary<E>
15) => fc.Arbitrary<Result.Result<E, A>> = <E, A>(
16 value: fc.Arbitrary<A>,
17 error: fc.Arbitrary<E>
18) => fc.oneof(init, failure(error), success(value), waiting(value, error))
19
20export const result: fc.Arbitrary<Result.Result<number, string>> = resultArb(
21 fc.string(),

Callers 1

result.tsFile · 0.85

Calls 3

failureFunction · 0.85
successFunction · 0.70
waitingFunction · 0.70

Tested by

no test coverage detected