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

Function createCacheForSize

tests/CppUTest/SimpleStringCacheTest.cpp:73–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 }
72
73 void createCacheForSize(size_t size, size_t amount)
74 {
75 for (size_t i = 0; i < amount; i++) {
76 char* memory = cache.alloc(size);
77 cache.dealloc(memory, size);
78 }
79 }
80};
81
82TEST(SimpleStringInternalCache, cacheHitWithOneEntry)

Callers 1

TESTFunction · 0.85

Calls 2

allocMethod · 0.45
deallocMethod · 0.45

Tested by

no test coverage detected