MCPcopy Create free account
hub / github.com/facebook/CacheLib / TEST

Function TEST

cachelib/cachebench/runner/tests/ObjectCacheStressorTest.cpp:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99TEST(ObjectCacheStressorTest, DispatchesFromFactory) {
100 auto stressor =
101 Stressor::makeStressor(makeCacheConfig(), makeWorkloadStressorConfig());
102 ASSERT_NE(nullptr, stressor);
103 EXPECT_NE(nullptr,
104 dynamic_cast<ObjectCacheStressor<LruAllocator>*>(stressor.get()));
105}
106
107TEST(ObjectCacheStressorTest, RunsDeterministicObjectCacheWorkload) {
108 ObjectCacheStressor<LruAllocator> stressor{

Callers

nothing calls this directly

Calls 9

makeCacheConfigFunction · 0.85
countMethod · 0.80
getMethod · 0.45
startMethod · 0.45
finishMethod · 0.45
getCacheStatsMethod · 0.45

Tested by

no test coverage detected