Skip to main content

Module validation

Module validation 

Source
Expand description

Capturing validation-layer output so tests can assert on it.

Validation errors that only reach stderr are worth very little: they are noticed when someone happens to look, and a device created invalid can pass an entire suite while appearing to work. Routing the messenger into a log the context owns turns “validation-clean” from something a developer remembers to check into something a test asserts.

Structs§

Validated
A context that asserts the layer reported nothing when it goes out of scope.
ValidationLog
Messages collected from the layer for the lifetime of a context.
ValidationMessage
One diagnostic from the validation layer.

Enums§

ValidationSeverity

Constants§

VALIDATION_LAYER
The layer name, requested at instance creation when validation is on.