diff options
author | Tor Egge <Tor.Egge@online.no> | 2024-02-19 14:21:02 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2024-02-19 14:21:02 +0100 |
commit | f21cabd761df707f7e510a5e425fb6bd1b7b5f07 (patch) | |
tree | 56f8f742ae2a748db8e575f5415e6a6c1101dfc5 | |
parent | 8f03466c5766960a48ead0c313ece361cfe0c8b4 (diff) |
Fix valgrind error in attribute bitvector unit test.
-rw-r--r-- | searchlib/src/tests/attribute/bitvector/bitvector_test.cpp | 12 |
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) { |