Skip to main content

Crate oscyl_conformance

Crate oscyl_conformance 

Source
Expand description

Conformance suite for Oscyl synth drivers.

Every driver calls run from its own tests/conformance.rs, against its own simulator. A failure panics with "<driver id>: <check>: <what>".

Modules§

pump
Drives a session against a simulator on a virtual clock: time only jumps to the session’s next deadline, so a lost reply times out at once and nothing ever sleeps.

Structs§

Quality
What a driver’s generated sounds must be beyond valid, by its own rules.

Functions§

app_hooks
The hooks apps show around the editor: the demo library holds valid programs that fit the writable slots, the demo simulator answers the device inquiry as the driver’s synth, the list facet is an in-range choice field, and firmware text never panics on the simulator’s reply.
audition
curation_covers_every_field
Every field is in exactly one section or excluded, and what the editor shows is complete: titles, labels, and controls that fit the field.
curation_shape
Whether c lays out n fields: at least one page, not every field excluded (a raw dump or an empty editor is not curation), every index below n and in exactly one section or the excluded list, titles and sections non-empty.
faults_never_report_false_success
fields
file_formats_round_trip
Every vendor format gives back the program bytes it was given, and the author and comment unless it holds none; unknown extensions are refused.
formats_every_value
Every field formats its minimum and maximum as non-empty text.
generated_sounds_are_good
The quality gate: every character, at 200 seeds and at every corner of the four macros (each at 0, 0.5 and 1), generates a valid, audible program at or under the level cap; and the six sounds of a dealt hand differ pairwise in at least min_spread fields, so a hand is never six of nearly the same sound. Each seed takes one corner, so the 81 corners come round more than twice per character.
generation_is_deterministic_and_valid
Same recipe, same bytes; every program valid; restricted and fixed fields keep the base; kept pages come from the base; vary and breed are deterministic and leave fixed fields alone.
init_program
live_messages_are_well_formed
Live messages exist exactly when the synth takes live changes, and each is complete channel-voice MIDI on the channel asked for.
lost_replies_fail
Every simulator offers lose_reply (every reply lost). Under it every op must end Failed: a lost reply is never success.
names
presentation_is_consistent
The editor’s other data agrees with the curation and the schema: emphasized fields are shown, labels exist, categories list what category says, signature pages exist, and graphs, handles and drags stay within the pages and fields.
progress
recognizes_its_simulator
The driver names its ports and recognises its simulator’s answer to the device inquiry, but not the inquiry itself (a port looping our output back).
rejects_bad_targets
Writes to read-only banks or past the last bank, and reads past the last bank, are refused at submit and send nothing.
run
Every check, in order.
well_formed
Exactly one complete channel-voice message on channel: a status byte and its data bytes (1 for program change and channel pressure, else 2), each below 0x80.
write_then_read_back
wrong_length_programs