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

Function main

tests/CppUTest/AllTests.cpp:34–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32#define SHOW_MEMORY_REPORT 0
33
34int main(int ac, char **av)
35{
36 int returnValue = 0;
37 GlobalSimpleStringCache stringCache;
38
39 {
40 /* These checks are here to make sure assertions outside test runs don't crash */
41 CHECK(true);
42 LONGS_EQUAL(1, 1);
43
44#if SHOW_MEMORY_REPORT
45 GlobalMemoryAccountant accountant;
46 accountant.start();
47#endif
48
49 CommandLineTestRunner::RunAllTests(ac, av); /* cover alternate method */
50
51#if SHOW_MEMORY_REPORT
52 accountant.stop();
53 printf("%s", accountant.report().asCharString());
54#endif
55 }
56
57 return returnValue;
58}
59

Callers

nothing calls this directly

Calls 4

asCharStringMethod · 0.80
startMethod · 0.45
stopMethod · 0.45
reportMethod · 0.45

Tested by

no test coverage detected