#![doc = include_str!("../README.md")]
pub use registry::{Entry, Registry};
pub use section::{Section, Trace};
mod registry;
mod section;
#[derive(Debug, Clone)]
pub struct Test {
pub scale: Option<Scale>,
pub section: Section,
pub name: String,
pub input: String,
pub output: String,
}
impl Test {
pub fn is_full(&self) -> bool {
self.scale == Some(Scale::Full)
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Scale {
Tiny,
Full,
}
impl AsRef<str> for Scale {
fn as_ref(&self) -> &str {
match self {
Scale::Tiny => "tiny",
Scale::Full => "full",
}
}
}