Crates.io | circus_test |
lib.rs | circus_test |
version | 0.1.0 |
source | src |
created_at | 2021-08-02 20:13:40.152019 |
updated_at | 2022-05-17 08:13:42.829156 |
description | Procedural macro to inject a seed in your tests |
homepage | https://github.com/PierreZ/circus |
repository | https://github.com/PierreZ/circus |
max_upload_size | |
id | 430671 |
size | 6,870 |
Allow injection of a random seed upon a test. Can be overloaded with environment var DETERMINISTIC_SEED
.
use circus_test::with_random_seed;
#[with_random_seed]
#[test]
fn random_seed(seed: u64) {
println!("{}", seed);
}
The MSRV is Rust 1.56.0.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.