Crate ifc_lite_testkit

Crate ifc_lite_testkit 

Source
Expand description

Test-only helpers shared by the ifc-lite crates’ test suites.

  • fixtures: catalogued-fixture resolution that honours IFC_LITE_REQUIRE_FIXTURES (the single home of that policy).
  • step: an in-memory STEP file builder.
  • mesh: mesh oracles over raw positions / indices slices.

This crate is publish = false and std-only. Depend on it as a path-only [dev-dependencies] entry (ifc-lite-testkit = { path = "../testkit" }, no version) so cargo strips it when packaging and the publish order is unaffected.

Re-exports§

pub use fixtures::fixture_bytes;
pub use fixtures::fixture_path;
pub use fixtures::fixture_present;
pub use fixtures::fixture_text;
pub use fixtures::local_fixture_text;
pub use fixtures::repo_root;
pub use fixtures::require_fixtures;
pub use fixtures::FixtureError;
pub use step::step_file;

Modules§

fixtures
Catalogued-fixture resolution (tests/models/**).
mesh
Mesh oracles over raw positions (xyz triples) / indices slices.
step
In-memory STEP file builder for tests.

Macros§

fixture_bytes_or_skip
Bind the fixture bytes of $rel or return from the enclosing test.
fixture_text_or_skip
Bind the fixture text of $rel or return from the enclosing test (the skip). Under IFC_LITE_REQUIRE_FIXTURES=1 a missing fixture panics.