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

Function setup

tests/CppUTestExt/CodeMemoryReporterTest.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 CodeMemoryReportFormatter* formatter;
47
48 void setup()
49 {
50 cAllocator = defaultMallocAllocator();
51 newAllocator = defaultNewAllocator();
52 newArrayAllocator= defaultNewArrayAllocator();
53 memory01 = (char*) 0x01;
54 memory02 = (char*) 0x02;
55
56 formatter = new CodeMemoryReportFormatter(cAllocator);
57 testResult = new TestResult(testOutput);
58 }
59
60 void teardown()
61 {

Callers

nothing calls this directly

Calls 3

defaultMallocAllocatorFunction · 0.85
defaultNewAllocatorFunction · 0.85
defaultNewArrayAllocatorFunction · 0.85

Tested by

no test coverage detected