multi_render_test

Macro multi_render_test 

Source
macro_rules! multi_render_test {
    ($test_name:ident, [$(($widget:expr, $area:expr)),+ $(,)?]) => { ... };
}
Expand description

Test rendering with multiple widget configurations.

Useful for testing that various configurations all render without panicking.

§Examples

multi_render_test!(test_pie_configurations, [
    (PieChart::default(), Rect::new(0, 0, 20, 10)),
    (PieChart::default().show_legend(false), Rect::new(0, 0, 30, 15)),
]);