Skip to content

Glossary: Software Design Patterns in Rust

monkeypatching

Also written: monkeypatch

Replacing parts of running code, usually in tests, to fake a dependency. Rust has none, and injection replaces it.

Where the book teaches it

Related terms

Dependency injectionFake