MENU

Fun & Interesting

Mocking Rust ? and Testing ?

Code to the Moon 41,936 3 years ago
Video Not Working? Fix It Now

A look at how to write integration and unit tests in Rust, including how to mock dependencies so that parts of the system can be tested in isolation. 00:00 Intro 00:53 Integration Tests 02:57 Unit Tests 04:17 Assert Macros 04:52 should_panic and ignored 05:43 cargo test 07:10 Mocking 11:52 Conclusion --- Stuff I use to make these videos - I absolutely love all of these products. Using these links is an easy way to support the channel, thank you so much if you do so!!! Camera: Canon EOS R5 https://amzn.to/3CCrxzl Monitor: Dell U4914DW 49in https://amzn.to/3MJV1jx Lens: Sigma 24mm f/1.4 DG HSM Art for Canon EF https://amzn.to/3hZ10mz SSD for Video Editing: VectoTech Rapid 8TB https://amzn.to/3hXz9TM Microphone: Rode NT1-A https://amzn.to/3vWM4gL Microphone Interface: Focusrite Clarett+ 2Pre https://amzn.to/3J5dy7S Tripod: JOBY GorillaPod 5K https://amzn.to/3JaPxMA Keyboard: Redragon Mechanical Gaming Keyboard https://amzn.to/3I1A7ZD Mouse: Razer DeathAdder https://amzn.to/3J9fYCf Computer: 2021 Macbook Pro https://amzn.to/3J7FXtW Caffeine: High Brew Cold Brew Coffee https://amzn.to/3hXyx0q More Caffeine: Monster Energy Juice, Pipeline Punch https://amzn.to/3Czmfox Building A Second Brain book: https://amzn.to/3cIShWf

Comment