7#include "utilities/core/formatter.h"
8#include "utilities/conversion/convert_string.h"
43 "test_priority_strings and test_priority enum are out of sync");
53 auto index =
static_cast<size_t>(priority);
62[[nodiscard]]
inline auto all_types(
void) -> std::vector<test_priority>
75template <>
struct std::formatter<
test_priority> : std::formatter<std::string_view>
84 template <
typename FormatContext>
87 return std::formatter<std::string_view>::format(
to_string(priority), ctx);
96struct std::formatter<
test_priority, wchar_t> : std::formatter<std::wstring_view, wchar_t>
105 template <
typename FormatContext>
109 auto wstr = convert_string::to_wstring(str);
110 return std::formatter<std::wstring_view, wchar_t>::format(wstr, ctx);
constexpr std::array test_priority_strings
Array of string representations for each test priority level.
constexpr size_t test_priority_count
Total number of test types available in test_priority_strings.
test_priority
Enumeration of test priority levels.
constexpr std::string_view to_string(test_priority priority)
Converts a test_priority value to its string representation.
auto all_types(void) -> std::vector< test_priority >
Converts a string to a job_types value.