pub struct ContractTester { /* private fields */ }Expand description
Contract testing framework
Implementations§
Source§impl ContractTester
impl ContractTester
pub fn new() -> Self
pub fn add_contract(&mut self, contract: String)
pub fn add_test_case(&mut self, test_case: TestCase)
pub fn run_tests(&self) -> Result<TestResults, ContractError>
Trait Implementations§
Source§impl Clone for ContractTester
impl Clone for ContractTester
Source§fn clone(&self) -> ContractTester
fn clone(&self) -> ContractTester
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ContractTester
impl RefUnwindSafe for ContractTester
impl Send for ContractTester
impl Sync for ContractTester
impl Unpin for ContractTester
impl UnwindSafe for ContractTester
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