MCPcopy Create free account
hub / github.com/fmtlib/fmt / TEST

Function TEST

test/args-test.cc:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include "gtest/gtest.h"
13
14TEST(args_test, basic) {
15 fmt::dynamic_format_arg_store<fmt::format_context> store;
16 store.push_back(42);
17 store.push_back("abc1");
18 store.push_back(1.5f);
19 EXPECT_EQ("42 and abc1 and 1.5", fmt::vformat("{} and {} and {}", store));
20}
21
22TEST(args_test, strings_and_refs) {
23 // Unfortunately the tests are compiled with old ABI so strings use COW.

Callers

nothing calls this directly

Calls 9

custom_typeClass · 0.85
stringClass · 0.85
copy_throwableClass · 0.85
resetMethod · 0.80
to_stringableClass · 0.70
vformatFunction · 0.50
argFunction · 0.50
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected