Add node-info getters to Schema
Change-Id: Iffea96cdcf20763286db19b0ee2b92dbf7c69b6c
diff --git a/tests/pretty_printers.hpp b/tests/pretty_printers.hpp
index 42be33e..86bd20d 100644
--- a/tests/pretty_printers.hpp
+++ b/tests/pretty_printers.hpp
@@ -7,6 +7,7 @@
#include <experimental/iterator>
#include "parser.hpp"
+#include "utils.hpp"
namespace std {
std::ostream& operator<<(std::ostream& s, const Completions& completion)
{
@@ -18,4 +19,21 @@
s << "}" << std::endl;
return s;
}
+
+std::ostream& operator<<(std::ostream& s, const std::optional<std::string>& opt)
+{
+ s << (opt ? *opt : "std::nullopt");
+ return s;
+}
+
+std::ostream& operator<<(std::ostream& s, const DatastoreAccess::Tree& map)
+{
+ s << std::endl
+ << "{";
+ for (const auto& it : map) {
+ s << "{\"" << it.first << "\", " << leafDataToString(it.second) << "}" << std::endl;
+ }
+ s << "}" << std::endl;
+ return s;
+}
}