ifc_lite_testkit/lib.rs
1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
5//! Test-only helpers shared by the ifc-lite crates' test suites.
6//!
7//! * [`fixtures`]: catalogued-fixture resolution that honours
8//! `IFC_LITE_REQUIRE_FIXTURES` (the single home of that policy).
9//! * [`step`]: an in-memory STEP file builder.
10//! * [`mesh`]: mesh oracles over raw `positions` / `indices` slices.
11//!
12//! This crate is `publish = false` and std-only. Depend on it as a
13//! path-only `[dev-dependencies]` entry (`ifc-lite-testkit = { path =
14//! "../testkit" }`, no `version`) so cargo strips it when packaging and the
15//! publish order is unaffected.
16
17pub mod fixtures;
18pub mod mesh;
19pub mod step;
20
21pub use fixtures::{
22 fixture_bytes, fixture_path, fixture_present, fixture_text, local_fixture_text, repo_root, require_fixtures, FixtureError,
23};
24pub use step::step_file;