[−][src]Attribute Macro capsule::test
#[test]
This is supported on
feature="testils" only.Procedural macro for running DPDK based tests.
Each test will create a new one-use Mempool with a maximum capacity
of 15. The Mempool is not shared with other tests, allowing tests to
run in isolation and in parallel.
Example
#[cfg(test)] pub mod tests { use super::*; #[capsule::test] fn test_drop() { ... assert!(drop); }