Expand description
This crate provides a testing environment for the Odra VM.
It is meant to be used in the unit tests of the Odra contracts.
§Example
#[test]
fn test() {
let env = odra_test::env();
let caller = env.get_account(0);
// Test your contract here.
}
Functions§
- Returns the host environment for the testing purpose.