mirror of
https://github.com/m-lamonaca/dev-notes.git
synced 2025-06-08 18:57:12 +00:00
show line numbers in conde snippets
This commit is contained in:
parent
cd1df0e376
commit
255a68d673
82 changed files with 1249 additions and 1251 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
## Test Functions
|
||||
|
||||
```rs
|
||||
```rs linenums="1"
|
||||
// module code here
|
||||
|
||||
#[cfg(test)]
|
||||
|
@ -33,7 +33,7 @@ mod tests {
|
|||
|
||||
## Controlling How Tests Are Run
|
||||
|
||||
```sh
|
||||
```sh linenums="1"
|
||||
cargo test -- --test-threads=<number> # run tests in parallel (1 no parallelism)
|
||||
cargo test -- --show-output # show content printed in stdout in each test
|
||||
cargo test <test_name> # run only a specific test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue