diff options
Diffstat (limited to 'src/test/util_string_tests.cpp')
-rw-r--r-- | src/test/util_string_tests.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/util_string_tests.cpp b/src/test/util_string_tests.cpp index 9f5b702acd..fbab9e7aba 100644 --- a/src/test/util_string_tests.cpp +++ b/src/test/util_string_tests.cpp @@ -16,13 +16,13 @@ BOOST_AUTO_TEST_SUITE(util_string_tests) template <unsigned NumArgs> inline void PassFmt(util::ConstevalFormatString<NumArgs> fmt) { - // This was already executed at compile-time, but is executed again at run-time to avoid -Wunused. - decltype(fmt)::Detail_CheckNumFormatSpecifiers(fmt.fmt); + // Execute compile-time check again at run-time to get code coverage stats + util::detail::CheckNumFormatSpecifiers<NumArgs>(fmt.fmt); } template <unsigned WrongNumArgs> inline void FailFmtWithError(const char* wrong_fmt, std::string_view error) { - BOOST_CHECK_EXCEPTION(util::ConstevalFormatString<WrongNumArgs>::Detail_CheckNumFormatSpecifiers(wrong_fmt), const char*, HasReason(error)); + BOOST_CHECK_EXCEPTION(util::detail::CheckNumFormatSpecifiers<WrongNumArgs>(wrong_fmt), const char*, HasReason{error}); } BOOST_AUTO_TEST_CASE(ConstevalFormatString_NumSpec) |