add arbiter storage test
@@ -357,3 +357,16 @@ where
(*self)()
}
}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn test_arbiter_local_storage() {
+ let _s = System::new("test");
+ Arbiter::set_item("test");
+ assert!(Arbiter::get_item::<&'static str, _, _>(|s| *s == "test"));
+ assert!(Arbiter::get_mut_item::<&'static str, _, _>(|s| *s == "test"));
+ }
+}
