lib: improve test coverage

Add a bunch of tests
This commit is contained in:
Dirk-Jan C. Binnema
2022-06-02 21:02:11 +03:00
parent 63521300a3
commit 13f0e24241
12 changed files with 275 additions and 54 deletions

View File

@ -70,9 +70,13 @@ public:
} catch (const Mu::Error& me) {
return Err(me);
} catch (...) {
}
/* LCOV_EXCL_START */
catch (...) {
return Err(Error::Code::Internal, "failed to create store");
}
/* LCOV_EXCL_STOP */
struct Config {
size_t max_message_size{};
@ -99,9 +103,12 @@ public:
} catch (const Mu::Error& me) {
return Err(me);
} catch (...) {
return Err(Error::Code::Internal, "failed to create store");
}
/* LCOV_EXCL_START */
catch (...) {
return Err(Error::Code::Internal, "failed to create new store");
}
/* LCOV_EXCL_STOP */
/**
* Move CTOR