Crate zebra_test

Source
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§

args
Helper macro to create a list of arguments in an Arguments instance.

Structs§

SkipTestReturnedErrPanicMessages 🔒

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.