MCPcopy Create free account
hub / github.com/CleverRaven/Cataclysm-DDA / throwing_string_format

Function throwing_string_format

tests/string_formatter_test.cpp:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10// Same as @ref string_format, but does not swallow errors and throws them instead.
11template<typename ...Args>
12std::string throwing_string_format( const char *const format, Args &&...args )
13{
14 cata::string_formatter formatter( format );
15 formatter.parse( std::forward<Args>( args )... );
16 return formatter.get_output();
17}
18
19template<typename ...Args>
20void importet_test( const int serial, const char *const expected, const char *const format,

Callers 5

importet_testFunction · 0.85
test_for_expectedFunction · 0.85
test_for_errorFunction · 0.85
test_new_old_patternFunction · 0.85
mingw_testFunction · 0.85

Calls 2

get_outputMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected