Move all pretty printers to pretty_printers.hpp
Next step is to get rid of std extensions.
Change-Id: Ib24c66521e6e7899cf2dae159d01e11f13622631
diff --git a/tests/data_query.cpp b/tests/data_query.cpp
index 5bc3222..5adc661 100644
--- a/tests/data_query.cpp
+++ b/tests/data_query.cpp
@@ -17,26 +17,10 @@
#error "Unknown backend"
#endif
#include "data_query.hpp"
+#include "pretty_printers.hpp"
#include "sysrepo_subscription.hpp"
#include "utils.hpp"
-namespace std {
-std::ostream& operator<<(std::ostream& s, const std::vector<ListInstance> set)
-{
- s << std::endl << "{" << std::endl;
- std::transform(set.begin(), set.end(), std::experimental::make_ostream_joiner(s, ", \n"), [](const auto& map) {
- std::ostringstream ss;
- ss << " {" << std::endl << " ";
- std::transform(map.begin(), map.end(), std::experimental::make_ostream_joiner(ss, ", \n "), [](const auto& keyValue){
- return "{" + keyValue.first + "{" + boost::core::demangle(keyValue.second.type().name()) + "}" + ", " + leafDataToString(keyValue.second) + "}";
- });
- ss << std::endl << " }";
- return ss.str();
- });
- s << std::endl << "}" << std::endl;
- return s;
-}
-}
TEST_CASE("data query")
{