Skip to main content

Module fixtures

Module fixtures 

Source
Expand description

Shared cross-host fixture loader.

The cross-host fixture set lives under tests/fixtures/oxi-foundation/v1/ and is byte-identical across oxicode / oxibrain / oxios. Loading here is intentionally dumb (include_str!-style — never network-fetched, never mutated).

Functions§

fixture_root
Resolve the fixture root by walking the current CARGO_MANIFEST_DIR upward. Returns None when the layout can’t be found (e.g. when the crate is consumed as a dependency without the fixtures directory).
foundation
Read the canonical foundation.json fixture.
package
Read a package fixture by name (without extension).
profile
Read a profile fixture by name (without extension).