Skip to main content

Crate aura_test

Crate aura_test 

Source
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() matches param_infos().len().
assert_param_defaults_match
Defaults match ParamInfo::default_plain within 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).