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

Function parseError

packages/effect/test/Schema/SchemaTest.ts:345–350  ·  view source on GitHub ↗
(f: () => void, message: string)

Source from the content-addressed store, hash-verified

343 },
344
345 parseError(f: () => void, message: string) {
346 throws(f, (err) => {
347 assertInstanceOf(err, ParseResult.ParseError)
348 strictEqual(err.message, message)
349 })
350 },
351
352 pretty<A, I, R>(schema: Schema.Schema<A, I, R>, a: A, expected: string) {
353 const pretty = Pretty.make(schema)

Callers

nothing calls this directly

Calls 3

assertInstanceOfFunction · 0.70
throwsFunction · 0.50
strictEqualFunction · 0.50

Tested by

no test coverage detected