Skip to main content

Module validation

Module validation 

Source

Enums§

ToolOutcome
What happened when one external checker was pointed at a generated file.
ToolValidation
Every checker’s verdict for one generated file.
ValidationOutcome
A validation result for one backend’s generated output, shaped for a caller (the CLI, in particular) to report directly to a user rather than for a test assertion to pick apart.

Constants§

STRICT_ENV_VAR
Environment variable that turns on strict tool validation.

Functions§

strict_mode_enabled
Whether strict mode is on, read from STRICT_ENV_VAR.
validate_generated_code
Validate one backend’s generated output with the real compilers and linters for its target language, collapsed to the three outcomes a caller needs to decide what to print and whether to fail a build.
validate_structural
Validate generated code structurally for a given backend. Returns a list of errors (empty = passed).
validate_with_tools
Validate generated code with the real compilers and linters for its language.