MCPcopy Create free account
hub / github.com/deskflow/deskflow / formatWithArgs

Method formatWithArgs

src/unittests/base/StringTests.cpp:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include "base/String.h"
11
12void StringTests::formatWithArgs()
13{
14 const char *format = "%%%{1}=%{2}";
15 const char *arg1 = "answer";
16 const char *arg2 = "42";
17
18 std::string result = deskflow::string::format(format, arg1, arg2);
19
20 QCOMPARE(result, "%answer=42");
21}
22
23void StringTests::formatedString()
24{

Callers

nothing calls this directly

Calls 1

formatFunction · 0.85

Tested by

no test coverage detected