Useful Links
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
Writing Automated Tests
Test Fundamentals
Test Function Attributes
Test Module Organization
Test Naming Conventions
Assertion Macros
assert! Macro
assert_eq! Macro
assert_ne! Macro
Custom Failure Messages
Debug Trait Requirements
Test Configuration
should_panic Attribute
expected Parameter
ignore Attribute
Conditional Compilation
Running Tests
cargo test Command
Test Output Control
Parallel vs Sequential Execution
Test Filtering
By Name
By Pattern
Ignored Tests
Test Organization
Unit Tests
Tests Module
cfg(test) Attribute
Testing Private Functions
Integration Tests
tests Directory
Integration Test Structure
Shared Test Code
Documentation Tests
Doc Comment Examples
Test Attributes in Docs
Hiding Doc Test Code
Previous
9. Generic Types, Traits, and Lifetimes
Go to top
Next
11. Functional Programming Features