# Audun Halland - Rust 2020: Testing (Highlights) ![rw-book-cover|256](https://readwise-assets.s3.amazonaws.com/static/images/article3.5c705a01b476.png) ## Metadata **Cover**:: https://readwise-assets.s3.amazonaws.com/static/images/article3.5c705a01b476.png **Source**:: #from/readwise **Zettel**:: #zettel/fleeting **Status**:: #x **Authors**:: [[Audun Halland]] **Full Title**:: Rust 2020: Testing **Category**:: #articles #readwise/articles **Category Icon**:: 📰 **Document Tags**:: #from/pocket #mock #rust #test **URL**:: [knowitlabs.no](https://knowitlabs.no/rust-2020-testing-4ab3d80112ba) **Host**:: [[knowitlabs.no]] **Highlighted**:: [[2020-09-19]] **Created**:: [[2022-09-26]] ## Highlights - use the crate [mockall](https://github.com/asomers/mockall) to autogenerate a mocked implementation that I instantiate in my test. - But it turns out you can still do this, using the nightly compiler! Enter [Mocktopus,](https://github.com/CodeSandwich/Mocktopus) a module-level mocking library.