aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2024-02-19 14:21:02 +0100
committerTor Egge <Tor.Egge@online.no>2024-02-19 14:21:02 +0100
commitf21cabd761df707f7e510a5e425fb6bd1b7b5f07 (patch)
tree56f8f742ae2a748db8e575f5415e6a6c1101dfc5
parent8f03466c5766960a48ead0c313ece361cfe0c8b4 (diff)
Fix valgrind error in attribute bitvector unit test.
-rw-r--r--searchlib/src/tests/attribute/bitvector/bitvector_test.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/searchlib/src/tests/attribute/bitvector/bitvector_test.cpp b/searchlib/src/tests/attribute/bitvector/bitvector_test.cpp
index 2532c120226..f9e6340560f 100644
--- a/searchlib/src/tests/attribute/bitvector/bitvector_test.cpp
+++ b/searchlib/src/tests/attribute/bitvector/bitvector_test.cpp
@@ -35,6 +35,18 @@ using search::queryeval::SearchIterator;
using SearchContextPtr = std::unique_ptr<SearchContext>;
using SearchBasePtr = std::unique_ptr<search::queryeval::SearchIterator>;
+namespace search::attribute {
+
+void PrintTo(const BasicType& bt, std::ostream* os) {
+ *os << bt.asString();
+}
+
+void PrintTo(const CollectionType& ct, std::ostream* os) {
+ *os << ct.asString();
+}
+
+}
+
std::string
param_as_string(const testing::TestParamInfo<std::tuple<BasicType, CollectionType, bool, bool>>& info)
{