cosmwasm_std/testing/
mod.rs

1#![cfg(not(target_arch = "wasm32"))]
2
3// Exposed for testing only
4// Both unit tests and integration tests are compiled to native code, so everything in here does not need to compile to Wasm.
5
6mod assertions;
7mod message_info;
8mod mock;
9mod storage;
10
11pub use assertions::assert_approx_eq_impl;
12#[cfg(test)]
13pub use assertions::assert_hash_works_impl;
14
15pub use message_info::message_info;
16#[cfg(feature = "cosmwasm_1_3")]
17pub use mock::DistributionQuerier;
18#[cfg(feature = "staking")]
19pub use mock::StakingQuerier;
20pub use mock::{
21    mock_dependencies, mock_dependencies_with_balance, mock_dependencies_with_balances, mock_env,
22    mock_wasmd_attr, BankQuerier, Envs, EnvsOptions, MockApi, MockQuerier,
23    MockQuerierCustomHandlerResult, MOCK_CONTRACT_ADDR,
24};
25#[cfg(feature = "ibc2")]
26pub use mock::{
27    mock_ibc2_packet_ack, mock_ibc2_packet_recv, mock_ibc2_packet_send, mock_ibc2_packet_timeout,
28};
29#[cfg(feature = "stargate")]
30pub use mock::{
31    mock_ibc_channel, mock_ibc_channel_close_confirm, mock_ibc_channel_close_init,
32    mock_ibc_channel_connect_ack, mock_ibc_channel_connect_confirm, mock_ibc_channel_open_init,
33    mock_ibc_channel_open_try, mock_ibc_packet_ack, mock_ibc_packet_recv, mock_ibc_packet_timeout,
34};
35
36pub use storage::MockStorage;