☰
Debian Codegraph
@
0.12.0-1
0.10.0-1
/
/
debian
/
rust-vendor
/
rstest
/
tests
/
resources
/
fixture
/
no_warning.rs
☽
☼
debian/rust-vendor/rstest/tests/resources/fixture/no_warning.rs
code
plain
raw
MIT
or
Apache-2.0
the respective crate authors
debian/copyright
1
use rstest::*;
2
3
#[fixture]
4
fn val() -> i32 {
5
21
6
}
7
8
#[fixture]
9
fn fortytwo(mut val: i32) -> i32 {
10
val *= 2;
11
val
12
}
13
14
#[rstest]
15
fn the_test(fortytwo: i32) {
16
assert_eq!(fortytwo, 42);
17
}