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

Function test_for_error

tests/string_formatter_test.cpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44template<typename ...Args>
45void test_for_error( const char *const format, Args &&... args )
46{
47 CAPTURE( format );
48
49 const std::string result = throwing_string_format( format, std::forward<Args>( args )... );
50 CAPTURE( result );
51}
52// Test whether raw printf and string_formatter return the same string (using
53// old_pattern in both). Test whether the new pattern (if any) yields the same
54// output via string_formatter (not used on raw printf).

Callers 1

Calls 1

throwing_string_formatFunction · 0.85

Tested by

no test coverage detected