[][src]Crate test_utils

Structs

TestLogger

Functions

calculate_hash

calculates the native Rust hash has nothing to do with our hashing e.g. multihash @see https://doc.rust-lang.org/std/hash/index.html

create_test_cap
create_test_cap_with_fn_name
create_test_context

create a test context and TestLogger pair so we can use the logger in assertions

create_test_dna_with_cap

Prepare valid DNA struct with that WASM in a zome's capability

create_test_dna_with_wasm

Prepare valid DNA struct with that WASM in a zome's capability

create_test_dna_with_wat

Create DNA from WAT

create_wasm_from_file

Load WASM from filesystem

hc_setup_and_call_zome_fn
test_context
test_context_and_logger
test_logger