MCPcopy Create free account
hub / github.com/cpputest/cpputest / parseArguments

Method parseArguments

src/CppUTestExt/MemoryReporterPlugin.cpp:44–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44bool MemoryReporterPlugin::parseArguments(int /* ac */, const char *const *av, int index)
45{
46 SimpleString argument (av[index]);
47 if (argument.contains("-pmemoryreport=")) {
48 argument.replace("-pmemoryreport=", "");
49
50 destroyMemoryFormatter(formatter_);
51 formatter_ = createMemoryFormatter(argument);
52 return true;
53 }
54 return false;
55}
56
57MemoryReportFormatter* MemoryReporterPlugin::createMemoryFormatter(const SimpleString& type)
58{

Callers

nothing calls this directly

Calls 2

containsMethod · 0.80
replaceMethod · 0.80

Tested by

no test coverage detected