Expand description
Miscellaneous test code for Zebra.
Modules§
- command
- Launching test commands for Zebra integration and acceptance tests.
- mock_
service - Some helpers to make it simpler to mock Tower services.
- net
- Network testing utility functions for Zebra.
- network_
addr - Contains test vectors for network protocol address messages:
- prelude
- Common
zebra_test
types, traits, and functions. - service_
extensions - Extension traits for [
Service
] types to help with testing. - transcript
- A [
Service
] implementation based on a fixed transcript. - vectors
- Test vectors for Zebra
- zip0143
- Contains test vectors for ZIP-0143 data (signature hashes).
- zip0243
- Contains test vectors for ZIP-0243 data (signature hashes).
- zip0244
- Contains test vectors for ZIP-0244 data (transaction IDs, signature hashes).
Macros§
Structs§
Statics§
- INIT 🔒
- MULTI_
THREADED_ RUNTIME - A multi-threaded Tokio runtime that can be shared between tests. This runtime should be used for tests that spawn blocking threads.
- SINGLE_
THREADED_ RUNTIME - A single-threaded Tokio runtime that can be shared between tests. This runtime should be used for tests that need a single thread for consistent timings.
Functions§
- init
- Initialize global and thread-specific settings for tests,
such as tracing configs, panic hooks, and
cargo insta
settings. - init_
async - Initialize globals for tests that need a separate Tokio runtime instance.