HDK Unit Testing
This crate provides a library of mocked hdk functions to help with unit testing your zome functions.
usage
In your tests, instantiate a mutable MockHdkT object and pass a mutable reference of this into the mocked hdk functions.
let mut mock_hdk = new;
let mock_hdk_ref = &mut mock_hdk;
All mocked functions take mock_hdk_ref as an input as well as the expected input and output of the called hdk function.
use *;
mock_create;
See an example usage in Acorn.