MCPcopy Create free account
hub / github.com/ceph/ceph / TEST_F

Function TEST_F

src/test/common/test_web_cache.cc:85–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83};
84
85TEST_F(WebCacheTest, AddReturnsGreaterZeroTs) {
86 auto expires_ts = _uut->add(a_key, a_valptr);
87 ASSERT_GT(expires_ts, ceph::real_clock::zero());
88}
89
90TEST_F(WebCacheTest, MultipleAddsToEmptyReturnFirstTs) {
91 const std::vector<ceph::real_time> inserts = {

Callers

nothing calls this directly

Calls 15

use_countMethod · 0.80
lookup_orMethod · 0.80
update_ttl_ifMethod · 0.80
expire_eraseMethod · 0.80
remove_ifMethod · 0.80
to_stringFunction · 0.70
addMethod · 0.45
sizeMethod · 0.45
has_valueMethod · 0.45
lookupMethod · 0.45
valueMethod · 0.45
generate_randomMethod · 0.45

Tested by

no test coverage detected