mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
89b3d07eba
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;
|