Skip to content
Commit 09164dbc authored by Aaro Altonen's avatar Aaro Altonen Committed by GitHub
Browse files

Introduce mockable `ChainSync` object for testing (#12480)



* Introduce mockable `ChainSync` object for testing

`mockall` allows to mock `ChainSync` and to verify that the calls made
to `ChaiSync` are firstly executed at all, that they're executed in
correct order and with correct parameters.

This allows to verify, e.g., that delegating calls directly to
`ChainSync` from `NetworkService` still calls the correct functions with
correct arguments even if `Protocol` middleman is removed.

* Add Cargo.lock

* Fix tests

* Update client/network/Cargo.toml

Co-authored-by: default avatarBastian Köcher <[email protected]>

* Update Cargo.lock

* Fix clippy and documentation

Co-authored-by: default avatarBastian Köcher <[email protected]>
Co-authored-by: parity-processbot <>
parent b0b2b679
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment