pub struct RuntimeAssertions<'a> { /* private fields */ }Expand description
Runtime assertions
Implementations§
Source§impl<'a> RuntimeAssertions<'a>
impl<'a> RuntimeAssertions<'a>
pub fn new(runtime: &'a MockRuntime) -> Self
pub fn assert_log_contains(&self, message: &str)
pub fn assert_log_count(&self, count: usize)
pub fn assert_notification_count(&self, count: usize)
pub fn assert_witness(&self, address: &[u8])
pub fn logs(&self) -> &[String]
pub fn notifications(&self) -> &[(NeoString, NeoArray<NeoValue>)]
Auto Trait Implementations§
impl<'a> Freeze for RuntimeAssertions<'a>
impl<'a> RefUnwindSafe for RuntimeAssertions<'a>
impl<'a> Send for RuntimeAssertions<'a>
impl<'a> Sync for RuntimeAssertions<'a>
impl<'a> Unpin for RuntimeAssertions<'a>
impl<'a> UnsafeUnpin for RuntimeAssertions<'a>
impl<'a> UnwindSafe for RuntimeAssertions<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more