diff --git a/lib/mu-query-results.hh b/lib/mu-query-results.hh index 33611707..479bd6c2 100644 --- a/lib/mu-query-results.hh +++ b/lib/mu-query-results.hh @@ -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; - 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; + /// /// This is a view over the Xapian::MSet, which can optionally filter unreadable diff --git a/lib/mu-query-threads.cc b/lib/mu-query-threads.cc index 4bb49645..6d992816 100644 --- a/lib/mu-query-threads.cc +++ b/lib/mu-query-threads.cc @@ -107,6 +107,7 @@ struct Container { using Containers = Container::Containers; using ContainerVec = Container::ContainerVec; +/* LCOV_EXCL_START */ static std::ostream& operator<<(std::ostream& os, const Container& container) { @@ -125,6 +126,7 @@ operator<<(std::ostream& os, const Container& container) return os; } +/* LCOV_EXCL_STOP */ using IdTable = std::unordered_map; using DupTable = std::multimap; @@ -534,6 +536,7 @@ sort_siblings(IdTable& id_table, bool descending) update_containers(root_vec, descending, id_table.size()); } +/* LCOV_EXCL_START */ static std::ostream& operator<<(std::ostream& os, const IdTable& id_table) { @@ -559,6 +562,7 @@ operator<<(std::ostream& os, const IdTable& id_table) } return os; } +/* LCOV_EXCL_STOP */ template static void diff --git a/lib/mu-server.cc b/lib/mu-server.cc index c2e19409..8ef1d5f0 100644 --- a/lib/mu-server.cc +++ b/lib/mu-server.cc @@ -50,6 +50,8 @@ using namespace Mu; +/* LCOV_EXCL_START */ + /// output stream to _either_ a file or to a stringstream struct OutputStream { /** @@ -1160,3 +1162,5 @@ Server::invoke(const std::string& expr) noexcept { return priv_->invoke(expr); } + +/* LCOV_EXCL_STOP */ diff --git a/lib/mu-server.hh b/lib/mu-server.hh index 28d2da3f..0ceaa68f 100644 --- a/lib/mu-server.hh +++ b/lib/mu-server.hh @@ -27,6 +27,8 @@ #include #include +/* LCOV_EXCL_START */ + namespace Mu { /** @@ -82,5 +84,6 @@ MU_ENABLE_BITOPS(Server::OutputFlags); } // namespace Mu +/* LCOV_EXCL_STOP */ #endif /* MU_SERVER_HH__ */