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

Function setup

tests/CppUTest/SimpleStringCacheTest.cpp:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 TestTestingFixture fixture;
54
55 void setup()
56 {
57 fixture.setTestFunction(&testFunction);
58 testFunction.parameter = &cache;
59
60 defaultAllocator = new MemoryLeakAllocator(defaultMallocAllocator());
61 allocator = new AccountingTestMemoryAllocator(accountant, defaultAllocator);
62 cache.setAllocator(defaultAllocator);
63 }
64
65 void teardown()
66 {

Callers

nothing calls this directly

Calls 3

defaultMallocAllocatorFunction · 0.85
setTestFunctionMethod · 0.80
setAllocatorMethod · 0.45

Tested by

no test coverage detected