MCPcopy Create free account
hub / github.com/effect-app/libs / assertSome

Function assertSome

repos/effect/packages/effect/test/utils/assert.ts:128–134  ·  view source on GitHub ↗
(
  option: Option.Option<A>,
  expected: A,
  ..._: Array<never>
)

Source from the content-addressed store, hash-verified

126 ..._: Array<never>
127) {
128 try {
129 await thunk()
130 } catch (e) {
131 if (error !== undefined) {
132 if (Predicate.isFunction(error)) {
133 error(e)
134 } else {
135 deepStrictEqual(e, error)
136 }
137 }

Callers 15

Iterable.test.tsFile · 0.90
Record.test.tsFile · 0.90
Number.test.tsFile · 0.90
Option.test.tsFile · 0.90
assertSomeIsoFunction · 0.90
DateTime.test.tsFile · 0.90
Result.test.tsFile · 0.90
Chunk.test.tsFile · 0.90
BigInt.test.tsFile · 0.90
String.test.tsFile · 0.90
Graph.test.tsFile · 0.90

Calls 2

someMethod · 0.80
deepStrictEqualFunction · 0.70

Tested by 1

assertSomeIsoFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…