Glossary: Software Design Patterns in Rust
Mock
Also written: mocks
A test stand-in that also records how it was called, so a test can check those calls. It differs from a fake, which is a simple working version, and from a stub, which returns fixed answers.