Skip to main content

Module test_harness

Module test_harness 

Source
Expand description

Test harness for edition declarations.

Each edition definition should call validate_edition once from its #[cfg(test)] module, so every declared edition has a test proving its constraints hold.

Functions§

validate_edition
Validate one edition’s constraints: its identifier is well-formed, it is declared in the given session, and the session’s declarations as a whole validate (chronology, version forms, membership constraints).