//! Helpers for writing tests.
#[cfg(test)]usecore::fmt::Debug;#[cfg(test)]usecrate::{Decode, Encode};#[cfg(test)]usesuper::tag::Tag;/// A typed field, which is prefixed with a type tag.
////// This is used in combination with the storage deserializer to "inspect" type
/// tags.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Encode, Decode)]#[musli(crate, packed)]#[cfg(test)]pub(crate)structTyped<const N:usize>{tag: Tag,
#[musli(bytes)]value: [u8; N],
}#[cfg(test)]impl<const N:usize>Typed<N>{/// Construct a new typed field.
pub(crate)constfnnew(tag: Tag, value: [u8; N])->Self{Self{ tag, value }}}crate::macros::test_fns!(Binary,"wire");