
Testing
Unit Tests in Rust and Where the Test Module Lives
Put unit tests in a cfg(test) module at the bottom of the file they test. See how the test harness discovers them, the access to private items and naming conventions that read well.
3 min read