Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Testing in Rust - A Primer in Unit Testing and Mocking

Rust via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore unit testing techniques and mocking in Rust through this 25-minute conference talk. Learn how to ensure code reliability and safety in low-level systems processes using Rust's built-in testing tools. Discover general unit testing methods and how to mock complex dependencies with the double crate. Follow along with examples ranging from simple to complex cases commonly encountered in real-world systems. Gain insights suitable for both novice and experienced Rust developers, as well as those curious about the language. Benefit from the expertise of Donald Whyte, a software engineer with extensive experience in distributed systems and machine learning, as he covers topics including unit tests, test doubles, profit models, robot logic, expected behavior, matching across elements, and design considerations.

Syllabus

Intro
About me
Unit tests
Test double
Profit model
Robot logic
Expected behavior
Matching across elements
Design considerations
Conclusion

Taught by

Rust

Reviews

Start your review of Testing in Rust - A Primer in Unit Testing and Mocking

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.