diff options
-rw-r--r-- | src/logbag.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/logbag.rs b/src/logbag.rs index 6575ecd..f94b80a 100644 --- a/src/logbag.rs +++ b/src/logbag.rs @@ -16,11 +16,13 @@ pub struct LogBag { impl LogBag { /// Construct a new, empty [`LogBag`]. + #[cfg(test)] pub fn new() -> Self { LogBag { data: Vec::new() } } /// Return an iterator over all available categories. + #[cfg(test)] pub fn categories(&self) -> impl Iterator<Item = &str> { self.data.iter().map(|x| &x.0 as &str) } |