| 355 | |
| 356 | template <size_t max_string_length, typename Char = char, typename... Args> |
| 357 | consteval auto test_format(auto format, const Args&... args) { |
| 358 | test_string<max_string_length, Char> string{}; |
| 359 | fmt::format_to(string.buffer, format, args...); |
| 360 | return string; |
| 361 | } |
| 362 | |
| 363 | TEST(compile_time_formatting_test, bool) { |
| 364 | EXPECT_EQ("true", test_format<5>(FMT_COMPILE("{}"), true)); |
nothing calls this directly
no test coverage detected