From bd961ccfb4d8a1a0c0a2061459d0704e03035958 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Sun, 13 Apr 2025 15:05:34 +0200 Subject: [PATCH] test: (unnecessary) refactor to use `span` instead of `vector` --- test/filter_test_data.cpp | 2 +- test/filter_test_data.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/filter_test_data.cpp b/test/filter_test_data.cpp index 28da2863..1b6b64e4 100644 --- a/test/filter_test_data.cpp +++ b/test/filter_test_data.cpp @@ -111,7 +111,7 @@ R"( } -std::vector const& get_filter_tests() { return filter_tests; } +std::span get_filter_tests() { return filter_tests; } std::ostream& operator<<(std::ostream& os, filter_test_data const& data) { os << data.test_name(); diff --git a/test/filter_test_data.h b/test/filter_test_data.h index a9a9a944..eda16d79 100644 --- a/test/filter_test_data.h +++ b/test/filter_test_data.h @@ -24,6 +24,7 @@ #pragma once #include +#include #include #include #include @@ -55,7 +56,7 @@ class filter_test_data { std::unordered_set expected_files_; }; -std::vector const& get_filter_tests(); +std::span get_filter_tests(); std::ostream& operator<<(std::ostream& os, filter_test_data const& data);