MCPcopy Create free account
hub / github.com/colmap/colmap / TEST

Function TEST

src/colmap/util/cache_test.cc:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36namespace {
37
38TEST(LRUCache, Empty) {
39 LRUCache<int, int> cache(
40 5, [](const int key) { return std::make_shared<int>(key); });
41 EXPECT_EQ(cache.NumElems(), 0);
42 EXPECT_EQ(cache.MaxNumElems(), 5);
43}
44
45TEST(LRUCache, Get) {
46 LRUCache<int, int> cache(

Callers

nothing calls this directly

Calls 11

NumElemsMethod · 0.80
MaxNumElemsMethod · 0.80
ExistsMethod · 0.80
EvictMethod · 0.80
MaxNumBytesMethod · 0.80
UpdateNumBytesMethod · 0.80
GetMethod · 0.45
PopMethod · 0.45
ClearMethod · 0.45
NumBytesMethod · 0.45
LoadMethod · 0.45

Tested by

no test coverage detected