test: (unnecessary) refactor to use span instead of vector

This commit is contained in:
Marcus Holland-Moritz 2025-04-13 15:05:34 +02:00
parent 8b6002a4e3
commit bd961ccfb4
2 changed files with 3 additions and 2 deletions

View File

@ -111,7 +111,7 @@ R"(
}
std::vector<filter_test_data> const& get_filter_tests() { return filter_tests; }
std::span<filter_test_data const> get_filter_tests() { return filter_tests; }
std::ostream& operator<<(std::ostream& os, filter_test_data const& data) {
os << data.test_name();

View File

@ -24,6 +24,7 @@
#pragma once
#include <iosfwd>
#include <span>
#include <string>
#include <string_view>
#include <unordered_set>
@ -55,7 +56,7 @@ class filter_test_data {
std::unordered_set<std::string> expected_files_;
};
std::vector<filter_test_data> const& get_filter_tests();
std::span<filter_test_data const> get_filter_tests();
std::ostream& operator<<(std::ostream& os, filter_test_data const& data);