UsefulLinks
Computer Science
Programming
By Language
Rust Programming
1. Getting Started with Rust
2. Rust Fundamentals
3. Understanding Ownership
4. Structuring Data with Structs
5. Enums and Pattern Matching
6. Managing Growing Projects
7. Common Collections
8. Error Handling
9. Generic Types, Traits, and Lifetimes
10. Writing Automated Tests
11. Functional Programming Features
12. Smart Pointers
13. Fearless Concurrency
14. Advanced Features
15. Foreign Function Interface
16. Rust Patterns and Best Practices
10.
Writing Automated Tests
10.1.
Test Fundamentals
10.1.1.
Test Function Attributes
10.1.2.
Test Module Organization
10.1.3.
Test Naming Conventions
10.2.
Assertion Macros
10.2.1.
assert! Macro
10.2.2.
assert_eq! Macro
10.2.3.
assert_ne! Macro
10.2.4.
Custom Failure Messages
10.2.5.
Debug Trait Requirements
10.3.
Test Configuration
10.3.1.
should_panic Attribute
10.3.2.
expected Parameter
10.3.3.
ignore Attribute
10.3.4.
Conditional Compilation
10.4.
Running Tests
10.4.1.
cargo test Command
10.4.2.
Test Output Control
10.4.3.
Parallel vs Sequential Execution
10.4.4.
Test Filtering
10.4.4.1.
By Name
10.4.4.2.
By Pattern
10.4.4.3.
Ignored Tests
10.5.
Test Organization
10.5.1.
Unit Tests
10.5.1.1.
Tests Module
10.5.1.2.
cfg(test) Attribute
10.5.1.3.
Testing Private Functions
10.5.2.
Integration Tests
10.5.2.1.
tests Directory
10.5.2.2.
Integration Test Structure
10.5.2.3.
Shared Test Code
10.5.3.
Documentation Tests
10.5.3.1.
Doc Comment Examples
10.5.3.2.
Test Attributes in Docs
10.5.3.3.
Hiding Doc Test Code
Previous
9. Generic Types, Traits, and Lifetimes
Go to top
Next
11. Functional Programming Features