diff options
author | Daniel Mueller <deso@posteo.net> | 2019-01-08 20:55:33 -0800 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-01-08 20:55:33 -0800 |
commit | 17203a1a5d91a1749adeca0f108aad8efa979ff3 (patch) | |
tree | 23de871a4e76802de0568304b667f21493bcfa1f /pkg-config/tests | |
parent | f01d63d978505badf3400df54b592e51dc0f7654 (diff) | |
download | nitrocli-17203a1a5d91a1749adeca0f108aad8efa979ff3.tar.gz nitrocli-17203a1a5d91a1749adeca0f108aad8efa979ff3.tar.bz2 |
Introduce UnwrapError trait to simplify error testing
For testing purposes it is beneficial to be able to check for expected
errors with the least amount of boiler plate code possible. This change
attempts to be a first step into this direction. It introduces a
test-only trait that can be used to directly unwrap a specific error
from a Result<T, crate::error::Error>.
Diffstat (limited to 'pkg-config/tests')
0 files changed, 0 insertions, 0 deletions