b714b2b3b6
* Implement initial service mocking helpers Adds a [`MockService`] type, which can be configured and built for usage in unit tests or proptests. The mocked service can then be used to intercept requests and respond indivdiually to them. * Use `MockService in the `mempool::Crawler` test Refactor it to remove the helper mock function, and use the new `MockService` helper type. * Use `MockService` in `CandidateSet` test vectors Refactor to remove the manual mocking of the peer set service. * Panic if a response is not sent by `MockService` Change the current semantics to require all `MockService` usages to respond to every intercepted request. A `must_use` attribute was added to the `ResponseSender` so that the compiler can warn when this doesn't happen. * Allow generic error types in `MockService` Replace the hard-coded `BoxError` as the `Service`'s error type with a generic type parameter. This allows mocking services in locations that require specific error types. * Add a `ResponseSender::request` getter Allow inspecting the request again before responding, and using information from the request in the response. Co-authored-by: Conrado Gouvea <conrado@zfnd.org> |
||
---|---|---|
.. | ||
src | ||
systemd | ||
tests | ||
Cargo.toml | ||
README.md | ||
build.rs |
README.md
Zebrad
Zebrad is an application.
Getting Started
This application is authored using Abscissa, a Rust application framework.
For more information, see: