lib: hide some code from coverage checking

Parts that are not easy / useful to unit-test
This commit is contained in:
Dirk-Jan C. Binnema
2023-09-10 10:12:07 +03:00
parent 85ad35bd8e
commit 192c67262a
4 changed files with 16 additions and 2 deletions

View File

@ -109,6 +109,7 @@ QueryMatch::has_flag(QueryMatch::Flags flag) const
return any_of(flags & flag);
}
/* LCOV_EXCL_START */
static inline std::ostream&
operator<<(std::ostream& os, QueryMatch::Flags mflags)
{
@ -140,8 +141,6 @@ operator<<(std::ostream& os, QueryMatch::Flags mflags)
return os;
}
using QueryMatches = std::unordered_map<Xapian::docid, QueryMatch>;
inline std::ostream&
operator<<(std::ostream& os, const QueryMatch& qmatch)
{
@ -151,6 +150,10 @@ operator<<(std::ostream& os, const QueryMatch& qmatch)
return os;
}
/* LCOV_EXCL_STOP*/
using QueryMatches = std::unordered_map<Xapian::docid, QueryMatch>;
///
/// This is a view over the Xapian::MSet, which can optionally filter unreadable