summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <tegge@vespa.ai>2024-02-19 14:24:58 +0100
committerGitHub <noreply@github.com>2024-02-19 14:24:58 +0100
commit480c99baa5c3a800825efc8677c12ff4f1e81b49 (patch)
tree56f8f742ae2a748db8e575f5415e6a6c1101dfc5
parent8f03466c5766960a48ead0c313ece361cfe0c8b4 (diff)
parentf21cabd761df707f7e510a5e425fb6bd1b7b5f07 (diff)
Merge pull request #30326 from vespa-engine/toregge/fix-valgrind-error-in-attribute-bitvector-unit-test
Fix valgrind error in attribute bitvector unit test MERGEOK
-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)
{