1 #[cfg(test)]
2 mod mocked;
3 #[cfg(test)]
4 pub use mocked::{check_color, create_mocked_drawing_area, MockedBackend};
5 
6 /// This is the dummy backend placeholder for the backend that never fails
7 #[derive(Debug)]
8 pub struct DummyBackendError;
9 
10 impl std::fmt::Display for DummyBackendError {
fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result11     fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result {
12         write!(fmt, "{:?}", self)
13     }
14 }
15 
16 impl std::error::Error for DummyBackendError {}
17