mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-03-22 14:16:41 -04:00

Each test spawns swarm for Alice and Bob that only contains the spot_price behaviours and uses a memory transport. Tests cover happy path (i.e. expected price is returned) and error scenarios. Implementation of `TestRate` on `LatestRate` allows testing rate fetch error and quote calculation error behaviour. Thanks to @thomaseizinger for ramping up the test framework for comit-rs in the past!
16 lines
293 B
Rust
16 lines
293 B
Rust
mod impl_from_rr_event;
|
|
|
|
pub mod cbor_request_response;
|
|
pub mod encrypted_signature;
|
|
pub mod json_pull_codec;
|
|
pub mod quote;
|
|
pub mod redial;
|
|
pub mod spot_price;
|
|
pub mod swarm;
|
|
pub mod tor_transport;
|
|
pub mod transfer_proof;
|
|
pub mod transport;
|
|
|
|
#[cfg(any(test, feature = "test"))]
|
|
pub mod test;
|