unityrs-testkit 1.0.0

Synthetic Unity files built in code, for unityrs's own tests and the CLI's test hooks; not a stable API. Never game data.
Documentation
//! Synthetic Unity files built in code, for unityrs tests.
//!
//! Everything here is made from scratch by the builders: never game data,
//! never bytes copied from a real file. The builders return `Vec<u8>` and
//! know nothing of `unityrs-core`, so core's own tests can use them (but
//! for `core_counters`, under the `test-counters` feature alone).
//!
//! Owners (docs/plans/core.md section 7): [`writer`], [`rng`],
//! [`public_types`] (the `Send + Sync` source scan the crates' tests share)
//! and [`waits`] (the no-thread, no-wait source scan) are the scaffold's
//! (implemented); [`blob`], [`serialized`] and [`bundle`] are package C's;
//! [`env`](mod@env) is package D's; [`depth`] (the deep values of plan
//! section 3.10), [`counted`] (the counting global allocator, and the
//! thread it counts), [`guard`] (the deadlock guard of every test that
//! hands work between threads), [`stack`] (the child-process probes that
//! measure a stack, and tell an overflow from every other failure) and
//! [`child`] (how every test runs a child process: a `SIGKILL` from
//! outside is no result) and [`scratch`] (how every test's scratch is
//! removed, whatever happens to the test or its child) are package B's;
//! [`ledger`] (one coherent observation of a counted engine's heap and
//! charges) and [`search`] (a limit's need, its monotonicity checked) are
//! the memory gates' (`docs/plans/extract.md` X12, X13); [`address_space`] (the cap that makes the C allocator
//! refuse, for the tests of liblzma's own allocations) is package C's;
//! [`mutate`] (G3b's mutator) is the integration's; [`fuzz`] (the fuzz
//! targets' input layouts, which `examples/fuzz_seeds.rs` writes the seeds
//! in) is the fuzz package's; [`ngui`] (the NGUI-shaped atlases the cutter's
//! reference, `tools/parity/ngui_cutter.py`, is tested and recorded on) is
//! P1b's.

pub mod address_space;
pub mod blob;
pub mod bundle;
pub mod child;
pub mod counted;
pub mod depth;
pub mod env;
pub mod fsb5;
pub mod fuzz;
pub mod guard;
pub mod ledger;
pub mod mutate;
pub mod ngui;
pub mod public_types;
pub mod rng;
pub mod scene3d;
pub mod scratch;
pub mod search;
pub mod serialized;
pub mod stack;
pub mod waits;
pub mod web;
pub mod writer;
pub mod zip;

pub use rng::Rng;
pub use writer::ByteWriter;

/// The core's test-only counters (`docs/plans/batch.md` section 6, CR8),
/// under this crate's `test-counters` feature, which turns the core's
/// feature of the same name on for every crate a test build links. The
/// core's own unit tests read `unityrs_core::testing` instead: theirs is
/// the core built for the test, this the library build's.
#[cfg(feature = "test-counters")]
pub use unityrs_core::testing as core_counters;