MCPcopy Create free account
hub / github.com/bytedance/bolt / verifyCacheStats

Function verifyCacheStats

bolt/common/caching/tests/SimpleLRUCacheTest.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37namespace {
38void verifyCacheStats(
39 const SimpleLRUCacheStats& actual,
40 size_t maxSize,
41 size_t curSize,
42 size_t numHits,
43 size_t numLookups) {
44 SimpleLRUCacheStats expectedStats{maxSize, curSize, numHits, numLookups};
45 EXPECT_EQ(actual, expectedStats) << " Actual " << actual.toString()
46 << " Expected " << expectedStats.toString();
47}
48} // namespace
49
50TEST(SimpleLRUCache, basicCaching) {

Callers 1

TESTFunction · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected