Expand description
Test helpers for AURA plugins.
State round-trip, param sanity, and a small offline process harness.
No host / CLAP load — pure PluginLogic.
ⓘ
#[test]
fn state_round_trips() {
aura_test::assert_state_round_trip::<MyPlugin>();
}
#[test]
fn process_is_finite() {
let out = aura_test::process_silence::<MyPlugin>(2, 256);
aura_test::assert_no_nans(&out);
}Functions§
- assert_
corrupt_ state_ no_ crash - Corrupt / truncated blobs must not panic and must leave defaults intact.
- assert_
empty_ state_ no_ crash - Empty blob is a no-op reject (same as corrupt).
- assert_
no_ duplicate_ param_ ids - No two infos share the same id.
- assert_
no_ nans - Every sample is finite (no NaN / Inf).
- assert_
nonzero - At least one |sample| > 1e-3.
- assert_
param_ count_ matches count()matchesparam_infos().len().- assert_
param_ defaults_ match - Defaults match
ParamInfo::default_plainwithin 1e-9. - assert_
silence - Every |sample| ≤ 1e-3.
- assert_
state_ round_ trip - Encode → fresh instance → decode; every param plain value must match.
- assert_
valid_ info - Plugin info strings are non-empty.
- process_
silence - Run one process block of silence; return per-channel output buffers.
- process_
with_ input - Process one block from owned input channels (same length).