[−][src]Attribute Macro capsule_macros::test
#[test]
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); }