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

Method formatedString

src/unittests/base/StringTests.cpp:23–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void StringTests::formatedString()
24{
25 const char *format = "%s=%d";
26 const char *arg1 = "answer";
27 int arg2 = 42;
28
29 std::string result = deskflow::string::sprintf(format, arg1, arg2);
30
31 QCOMPARE("answer=42", result);
32}
33
34QTEST_MAIN(StringTests)

Callers

nothing calls this directly

Calls 1

sprintfFunction · 0.85

Tested by

no test coverage detected