1#[cfg(test)]
2mod mocked;
3#[cfg(test)]
4pub 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)]
8pub struct DummyBackendError;
9
10impl std::fmt::Display for DummyBackendError {
11 fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result {
12 write!(fmt, "{:?}", self)
13 }
14}
15
16impl std::error::Error for DummyBackendError {}
17