From aec0db1b96160b0e85fa18676d106f9d50d2df6e Mon Sep 17 00:00:00 2001 From: Patryk Wrobel Date: Fri, 12 Jan 2024 10:24:59 +0100 Subject: [PATCH] cql_auth_query_test.cc: do not rely on templated operator<< This change is intended to remove the dependency to operator<<(std::ostream&, const std::unordered_set&) from test/boost/cql_auth_query_test.cc. It prepares the test for removal of the templated helpers. Such removal is one of goals of the referenced issue that is linked below. Refs: #13245 Signed-off-by: Patryk Wrobel Closes scylladb/scylladb#16758 --- test/boost/cql_auth_query_test.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/boost/cql_auth_query_test.cc b/test/boost/cql_auth_query_test.cc index 5da350bce6..44a2b8d3c6 100644 --- a/test/boost/cql_auth_query_test.cc +++ b/test/boost/cql_auth_query_test.cc @@ -32,6 +32,15 @@ static const auto alice = std::string_view("alice"); static const auto bob = std::string_view("bob"); +namespace seastar { + +std::ostream& boost_test_print_type(std::ostream& os, const std::unordered_set& strings) { + fmt::print(os, "{}", strings); + return os; +} + +} // namespace seastar + static shared_ptr db_config_with_auth() { shared_ptr config_ptr = make_shared(); auto& config = *config_ptr;