MCPcopy Index your code
hub / github.com/Effect-TS/effect / assertRight

Function assertRight

packages/effect/test/util.ts:144–150  ·  view source on GitHub ↗
(
  either: Either.Either<R, L>,
  expected: R,
  ..._: Array<never>
)

Source from the content-addressed store, hash-verified

142}
143
144export function assertRight<R, L>(
145 either: Either.Either<R, L>,
146 expected: R,
147 ..._: Array<never>
148): asserts either is Either.Right<never, R> {
149 deepStrictEqual(either, Either.right(expected))
150}
151
152// ----------------------------
153// Exit

Callers

nothing calls this directly

Calls 1

deepStrictEqualFunction · 0.70

Tested by

no test coverage detected