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