Struct fe_compiler_test_utils::ExecutionOutput
source · pub struct ExecutionOutput { /* private fields */ }
Implementations§
source§impl ExecutionOutput
impl ExecutionOutput
sourcepub fn new(exit_reason: ExitReason, data: Vec<u8>) -> ExecutionOutput
pub fn new(exit_reason: ExitReason, data: Vec<u8>) -> ExecutionOutput
Create an ExecutionOutput
instance
sourcepub fn expect_success(self) -> ExecutionOutput
pub fn expect_success(self) -> ExecutionOutput
Panic if the execution did not succeed.
sourcepub fn expect_revert(self) -> ExecutionOutput
pub fn expect_revert(self) -> ExecutionOutput
Panic if the execution did not revert.
sourcepub fn expect_revert_reason(self, reason: &str) -> ExecutionOutput
pub fn expect_revert_reason(self, reason: &str) -> ExecutionOutput
Panic if the output is not an encoded error reason of the given string.
Auto Trait Implementations§
impl RefUnwindSafe for ExecutionOutput
impl Send for ExecutionOutput
impl Sync for ExecutionOutput
impl Unpin for ExecutionOutput
impl UnwindSafe for ExecutionOutput
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