mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-23 05:41:07 -05: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! |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |