/
View dependency graph
Depends on
- dh-cargo (dh-sequence-cargo)
- cargo, debhelper-compat, librust-proc-macro2-1+default-dev, librust-quote-1+default-dev, librust-syn-1+default-dev, librust-syn-1+full-dev, libstd-rust-dev, rustc
README (full)
NTest TestCases
Part of the NTest library. Add test cases to the rust test framework using procedural macros.
Examples
Example with a single argument:
#[test_case(13)]
#[test_case(42)]
fn one_arg(x: u32) {
assert!(x == 13 || x == 42)
}
The test cases above will be parsed at compile time and two rust test functions will be generated instead:
#[test]
fn one_arg_13() {
x = 13;
assert!(x == 13 || x == 42)
}
#[test]
fn one_arg_42() {
x = 42;
assert!(x == 13 || x == 42)
}
For more examples and information read the documentation.
| dir | debian/ |
| dir | src/ |
| dir | tests/ |
| file | .cargo_vcs_info.json |
| file | Cargo.lock |
| file | Cargo.toml |
| file | Cargo.toml.orig |
| file | LICENSE |
| file | README.md |