Module mithril_common::test_utils
source · Expand description
Test utilities
They contains:
- A Open Api Spec tester
- Some precomputed fake data and keys
- A builder of MithrilFixture to generate signers alongside a stake distribution
Modules§
- Tools to helps validate conformity to an OpenAPI specification
- Fake data builders for testing.
- Pre hex encoded StmTypes for testing.
- Define a HttpServer for test that can be configured using warp filters.
Macros§
- Compare two json strings ignoring keys order
Structs§
- Builder to easily build transactions with consistent values.
- A builder for creating a certificate chain. For tests only.
- Context used while building a certificate chain. For tests only.
- A fixture of Mithril data types.
- A builder of mithril types.
- A builder of temp directory for tests purpose.
Enums§
- Methods that can be used to generate the stake distribution.
Functions§
- Assert that two iterators are equivalent
- Compare two iterators ignoring the order