Function usiem::testing::do_before_stoping_component
source · pub fn do_before_stoping_component<F>(
component: &Box<dyn SiemComponent>,
action: F
) -> JoinHandle<Result<(), SendError<SiemMessage>>>where
F: FnOnce() + Send + 'static,
Expand description
Simplify the process of testing components. This lets you execute some actions like send SiemMessages before stopping a component