Module cosmwasm_std::testing [−][src]
Structs
MockQuerier holds an immutable table of bank balances TODO: also allow querying contracts
Constants
Functions
All external requirements that can be injected for unit tests. It sets the given balance for the contract itself, nothing else
Initializes the querier along with the mock_dependencies. Sets all balances provided (yoy must explicitly set contract balance if desired)
Returns a default enviroment with height, time, chain_id, and contract address You can submit as is to most contracts, or modify height/time if you want to test for expiration.
Just set sender and funds for the message. This is intended for use in test code only.
Only for test code. This bypasses assertions in new, allowing us to create _* Attributes to simulate responses from the blockchain
Performs a perfect shuffle (in shuffle)
Type Definitions
The same type as cosmwasm-std’s QuerierResult, but easier to reuse in cosmwasm-vm. It might diverge from QuerierResult at some point.