pub fn expect_success(&mut self) -> &mut WasmTestBuilder {
        // Check first result, as only first result is interesting for a simple test
        let exec_response = self
            .exec_responses
            .last()
            .expect("Expected to be called after run()")
            .clone();
        let deploy_result = exec_response
            .get_success()
            .get_deploy_results()
            .get(0)
            .expect("Unable to get first deploy result");
        if !deploy_result.has_execution_result() {
            panic!("Expected ExecutionResult, got {:?} instead", deploy_result);
        }

        if deploy_result.get_execution_result().has_error() {
            panic!(
                "Expected successful execution result, but instead got: {:?}",
                exec_response,
            );
        }
        self
    }
/// Expects a successful run and caches transformations
Expects a successful run and caches transformations
Expects a successful run and caches transformations
pub fn expect_success(&mut self) -> &mut WasmTestBuilder {
        // Check first result, as only first result is interesting for a simple test
        let exec_response = self
            .exec_responses
            .last()
            .expect("Expected to be called after run()")
            .clone();
        let deploy_result = exec_response
            .get_success()
            .get_deploy_results()
            .get(0)
            .expect("Unable to get first deploy result");
        if !deploy_result.has_execution_result() {
            panic!("Expected ExecutionResult, got {:?} instead", deploy_result);
        }
        if deploy_result.get_execution_result().has_error() {
            panic!(
                "Expected successful execution result, but instead got: {:?}",
                exec_response,
            );
        }
        self
    }
pub fn expect_success ( & mut self ) -> & mut WasmTestBuilder { // Check first result, as only first result is interesting for a simple test let exec_response = self . exec_responses . last ( ) . expect ( " " ) . clone ( ) ; let deploy_result = exec_response . get_success ( ) . get_deploy_results ( ) . get ( 0 ) . expect ( " " ) ; if ! deploy_result . has_execution_result ( ) { panic ! ( " " deploy_result ) ; } if deploy_result . get_execution_result ( ) . has_error ( ) { panic ! ( " " exec_response ) ; } self }
Expects a successful run and caches transformations
Expects a successful run and caches transformations
&mut self
&mut self