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

Method encoding

repos/effect/packages/effect/src/testing/TestSchema.ts:246–250  ·  view source on GitHub ↗

* Returns an Encoding instance for this schema with helpers for encoding assertions. * * **When to use** * * Use to test how schema values are encoded into their external form. * * **Details** * * Pass `parseOptions` to control error reporting, for example `{ errors:

(options?: {
    readonly parseOptions?: SchemaAST.ParseOptions | undefined
  })

Source from the content-addressed store, hash-verified

244 * @see {@link decoding} for assertions in the opposite direction
245 */
246 encoding(options?: {
247 readonly parseOptions?: SchemaAST.ParseOptions | undefined
248 }) {
249 return new Encoding(this.schema, options)
250 }
251 /**
252 * Returns an object with property-based testing helpers for the schema's arbitrary generator.
253 *

Callers 7

Cookies.test.tsFile · 0.80
v3-v4.test.tsFile · 0.80
toCodec.test.tsFile · 0.80
Schema.test.tsFile · 0.80
TestSchema.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected