fn env_setup(){
        // Initializes a context builder for our tests 
        let mut builder: VMContextBuilder = VMContextBuilder::new();

        // attributes that can be modified using the builder
        // current_account_id
        // signer_account_id
        // signer_account_pk
        // precessor_account_id
        // block_index
        // block_timestamp
        // epoch_height
        // account_balance
        // account_locked_balance
        // storage_usage
        // attached_deposit
        // prepaid_gas
        // random_seed
        // is_view

        // account id string
        let account_id: AccountId = String::from("stiltztinkerstein");

        builder.current_account_id(
            // try_from tries to convert a string to a valid account id
            // panics if the id is invalid
            ValidAccountId::try_from(
                account_id.clone()
            ).unwrap()
        );

        // sets up the mock
        testing_env!(builder.build());

        // if the first two arguments are not equal, 
        // return the error message
        assert_eq!(
            env::current_account_id(),
            account_id, 
            "Erro assert.\n env: {}\naccount: {}\n", 
            env::current_account_id(), 
            &account_id,
        );
    }
/// This function is not a test. It is used by the tests to setup our mock test environment
This function is not a test. It is used by the tests to setup our mock test environment
This function is not a test . It is used by the tests to setup our mock test environment
fn env_setup(){
        // Initializes a context builder for our tests 
        let mut builder: VMContextBuilder = VMContextBuilder::new();
        // attributes that can be modified using the builder
        // current_account_id
        // signer_account_id
        // signer_account_pk
        // precessor_account_id
        // block_index
        // block_timestamp
        // epoch_height
        // account_balance
        // account_locked_balance
        // storage_usage
        // attached_deposit
        // prepaid_gas
        // random_seed
        // is_view
        // account id string
        let account_id: AccountId = String::from("stiltztinkerstein");
        builder.current_account_id(
            // try_from tries to convert a string to a valid account id
            // panics if the id is invalid
            ValidAccountId::try_from(
                account_id.clone()
            ).unwrap()
        );
        // sets up the mock
        testing_env!(builder.build());
        // if the first two arguments are not equal, 
        // return the error message
        assert_eq!(
            env::current_account_id(),
            account_id, 
            "Erro assert.\n env: {}\naccount: {}\n", 
            env::current_account_id(), 
            &account_id,
        );
    }
fn env_setup ( ) { // Initializes a context builder for our tests  let mut builder : VMContextBuilder = VMContextBuilder :: new ( ) ; // attributes that can be modified using the builder // current_account_id // signer_account_id // signer_account_pk // precessor_account_id // block_index // block_timestamp // epoch_height // account_balance // account_locked_balance // storage_usage // attached_deposit // prepaid_gas // random_seed // is_view // account id string let account_id : AccountId = String :: from ( " " ) ; builder . current_account_id ( // try_from tries to convert a string to a valid account id // panics if the id is invalid ValidAccountId :: try_from ( account_id . clone ( ) ) . unwrap ( ) ) ; // sets up the mock testing_env ! ( builder build ( ) ) ; // if the first two arguments are not equal,  // return the error message assert_eq ! ( env current_account_id ( ) account_id " \n \n \n " env current_account_id ( ) account_id ) ; }
This function is not a test.
This function is not a test .