Skip to content

Glossary: Software Design Patterns in Rust

Fixture

Also written: fixtures

Test setup code that builds fresh inputs for each test. Rust has no built-in fixtures, so a helper function like make_log does the job.

Where the book teaches it

Related terms

Fake