mirror of
https://github.com/mhx/dwarfs.git
synced 2025-08-03 17:56:12 -04:00
test: (unnecessary) refactor to use span
instead of vector
This commit is contained in:
parent
8b6002a4e3
commit
bd961ccfb4
@ -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();
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user