Add pretty printer
The change to the API of availableNodes disabled printing of the return
values.
Change-Id: I50d888372ae2ffedbb4bec9153a85d7d3a6e6f1d
diff --git a/tests/pretty_printers.hpp b/tests/pretty_printers.hpp
index d49d244..fb8aebf 100644
--- a/tests/pretty_printers.hpp
+++ b/tests/pretty_printers.hpp
@@ -88,6 +88,15 @@
s << (opt ? *opt : "std::nullopt");
return s;
}
+
+std::ostream& operator<<(std::ostream& s, const std::set<ModuleNodePair>& set)
+{
+ std::transform(set.begin(), set.end(),
+ std::experimental::make_ostream_joiner(s, ", "),
+ [] (const ModuleNodePair& it) { return (it.first ? *it.first + ":" : "") + it.second; });
+ return s;
+}
+
}
std::ostream& operator<<(std::ostream& s, const boost::variant<dataPath_, schemaPath_, module_>& path)