Testing is relatively straightforward in Rust - it can be done using the 'cargo test' command. Once you have defined some tests in your source code, you are then able to run 'cargo test' to get your test results.
In this video I go over some basic examples of testing, how to use other modules + structs in your tests and some testing attributes.
For your reference, check this out:
[ Ссылка ]
Follow me on Twitter @dcode!
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Ещё видео!