MCPcopy Create free account
hub / github.com/Effect-TS/effect / assertMissingKeyFailure

Function assertMissingKeyFailure

packages/effect/test/Optic.test.ts:30–32  ·  view source on GitHub ↗
(result: Result.Result<A, SchemaIssue.Issue>, key: PropertyKey)

Source from the content-addressed store, hash-verified

28}
29
30function assertMissingKeyFailure<A>(result: Result.Result<A, SchemaIssue.Issue>, key: PropertyKey) {
31 assertTrue(assertPointerFailure(result, [key])._tag === "MissingKey")
32}
33
34describe("Optic", () => {
35 it("replace should throw an error if the object has a non-Object constructor or null prototype", () => {

Callers 1

Optic.test.tsFile · 0.85

Calls 2

assertTrueFunction · 0.90
assertPointerFailureFunction · 0.85

Tested by

no test coverage detected