Module testing

Source
Available on crate feature test-dependencies only.
Expand description

Utilities for testing wallets based upon the crate::data_api traits.

Modules§

orchardorchard
pool
sapling
transparenttransparent-inputs

Structs§

CachedBlock
Metadata about a block generated by TestState.
FakeCompactOutput
A fake output of a CompactTx.
InitialChainState
The initial chain state for a test.
MockWalletDb
A mock wallet data source that implements the bare minimum necessary to function.
NoteCommitments
A convenience type for the note commitments contained within a CompactBlock.
TestAccount
The test account configured for a TestState.
TestBuilder
A TestState builder, that configures the environment for a test.
TestState
The state for a zcash_client_backend test.
TransactionSummary
Information about a transaction that the wallet is interested in.

Enums§

AddressType
Configures how a TestFvk receives a particular output.

Traits§

DataStoreFactory
Trait representing the ability to construct a new data store for use in a test.
Reset
Trait method exposing the ability to reset the wallet within a test.
TestCache
Trait used by tests that require a block cache.
TestFvk
Trait used by tests that require a full viewing key.

Functions§

single_output_change_strategy