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§
- apispec
- Tools to helps validate conformity to an OpenAPI specification
- fake_
data - Fake data builders for testing.
- fake_
keys - Pre hex encoded StmTypes for testing.
- test_
http_ server - Define a HttpServer for test that can be configured using warp filters.
Macros§
- assert_
dir_ eq - Compare a directory against a string representing its expected structure or against another directory.
- assert_
same_ json - Compare two json strings ignoring keys order
- current_
function - Returns the name of the function that called this macro.
- current_
function_ path - Returns the path of the function that called this macro.
- temp_
dir - Return a temporary directory based on the current function name.
- temp_
dir_ create - Create and return a temporary directory based on the current function name.
Structs§
- Cardano
Transactions Builder - Builder to easily build transactions with consistent values.
- Certificate
Chain Builder - A builder for creating a certificate chain. For tests only.
- Certificate
Chain Builder Context - Context used while building a certificate chain. For tests only.
- DirStructure
- A structure to compare two directories in a human-readable way in tests.
- Mithril
Fixture - A fixture of Mithril data types.
- Mithril
Fixture Builder - A builder of mithril types.
- Signer
Fixture - A signer fixture, containing a signer entity with its corresponding protocol signer and initializer
- TempDir
- A builder of temp directory for tests purpose.
Enums§
- Certificate
Chaining Method - Chaining method to use when building a certificate chain with the CertificateChainBuilder. For tests only.
- Stake
Distribution Generation Method - Methods that can be used to generate the stake distribution.
Functions§
- assert_
equivalent - Assert that two iterators are equivalent
- equivalent_
to - Compare two iterators ignoring the order
- format_
current_ function_ module - Return the path of the given function.
If the last function is
f
, it is removed. The last{{closure}}
is also removed. - format_
current_ function_ path - Return a string representing the path of the given function.