Skip to main content

Module test_support

Module test_support 

Source
Expand description

Parameter-block test fixtures shared across the workspace.

These fixtures build ParameterBlockSpec values, so they live in the crate that owns that type rather than in a downstream test-support crate. Following the workspace convention for test_support modules, this is a plain always-compiled pub mod: feature gates and #[cfg(test)] module gates are banned here, and a cfg(test) module would be invisible to downstream crates’ test builds anyway. The contents are pub, so they are reachable (no dead-code lint) yet only ever called from #[cfg(test)] code.

Structs§

BinomialLocationScaleBaseFixture
A minimal two-block binomial location–scale problem: n = 7 Bernoulli responses with an intercept-only threshold block and an intercept-only log-σ block, each carrying a unit ridge penalty.

Functions§

binomial_location_scale_base_fixture
spec_from_dense
An unpenalized block wrapping a dense design under the default gauge priority.
spec_from_dense_with_priority
spec_from_dense with an explicit gauge priority, for fixtures that pin which block wins a shared-affine gauge contest.