Skip to main content

Module testing

Module testing 

Source
Available on crate features 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.
FixedNotes
An InputSource holding a fixed list of shielded notes, for tests that drive input selection without a wallet database.
InitialChainState
The initial chain state for a test.
IronwoodFvkorchard
A test-only viewing key that receives Ironwood (version 3) notes. It wraps the account’s Orchard full viewing key, but its outputs are version 3 notes placed in tx.ironwood_actions and encrypted under the Ironwood note-encryption domain, so a wallet scanning them exercises the Ironwood receive path.
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
TransactionSummary
Information about a transaction that the wallet is interested in.

Enums§

AddressType
Configures how a TestFvk receives a particular output.
FixedNotesError
Errors of FixedNotes.

Traits§

CacheInsertionResult
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