Skip to main content

Module spec

Module spec 

Source
Expand description

Serde types for the faucet test spec file.

A spec file declares fixture-based, fully-offline test cases for a pipeline’s deterministic path (transforms → quality → contract). No real source or sink is ever built: fixture records are streamed through an in-memory source and captured by an in-memory sink + DLQ.

Structs§

Expectation
Expected outcome of a test case. Every field is optional but at least one must be set; all set fields are asserted together.
InlinePipeline
Inline pipeline logic for a test case that doesn’t reference a config file.
TestCase
One fixture-based test case.
TestSpecFile
Top-level shape of a faucet test spec file (YAML or JSON).

Enums§

InputSpec
Fixture input — inline records or a fixture-file path.
MatchMode
Record-comparison mode for expect.records / expect.dlq.

Functions§

load_spec
Parse a spec file (YAML or JSON by extension) and validate it.