Add source code link to each post

This commit is contained in:
Philipp Oppermann
2019-01-27 17:58:30 +01:00
parent 04d3c134e2
commit 1034c884ac
9 changed files with 22 additions and 8 deletions

View File

@@ -10,10 +10,11 @@ This post explores unit testing in `no_std` executables using Rust's built-in te
<!-- more -->
This blog is openly developed on [Github]. If you have any problems or questions, please open an issue there. You can also leave comments [at the bottom].
This blog is openly developed on [Github]. If you have any problems or questions, please open an issue there. You can also leave comments [at the bottom]. The complete source code for this post can be found [here][post branch].
[Github]: https://github.com/phil-opp/blog_os
[at the bottom]: #comments
[post branch]: https://github.com/phil-opp/blog_os/tree/post-04
## Unit Tests for `no_std` Binaries
Rust has a [built-in test framework] that is capable of running unit tests without the need to set anything up. Just create a function that checks some results through assertions and add the `#[test]` attribute to the function header. Then `cargo test` will automatically find and execute all test functions of your crate.