xmr-btc-swap/swap/src/network
Daniel Karzel 89b3d07eba
Network protocol tests for spot_price behaviour
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!
2021-05-07 15:00:29 +10:00
..
cbor_request_response.rs Rename module to better represent what it contains 2021-03-24 11:39:40 +11:00
encrypted_signature.rs Improve error reporting of failed protocols 2021-04-14 10:34:06 +10:00
impl_from_rr_event.rs Improve error reporting of failed protocols 2021-04-14 10:34:06 +10:00
json_pull_codec.rs Json codec for quote protocol 2021-04-16 16:00:45 +10:00
quote.rs Json codec for quote protocol 2021-04-16 16:00:45 +10:00
redial.rs Improve error reporting of failed protocols 2021-04-14 10:34:06 +10:00
spot_price.rs Decouple ASB/CLI Errors from Error sent over wire 2021-05-07 15:00:29 +10:00
swarm.rs Decouple ASB/CLI Errors from Error sent over wire 2021-05-07 15:00:29 +10:00
test.rs Network protocol tests for spot_price behaviour 2021-05-07 15:00:29 +10:00
tor_transport.rs Simplify to_address_string by implying more context on the structure. 2021-04-28 16:21:31 +10:00
transfer_proof.rs Peer check for incoming transfer proofs 2021-04-29 18:28:14 +10:00
transport.rs Add support for swapping through Tor. 2021-04-27 14:51:41 +10:00