MCPcopy Create free account
hub / github.com/apache/arrow / TEST_F

Function TEST_F

cpp/src/gandiva/lru_cache_test.cc:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44};
45
46TEST_F(TestLruCache, TestEvict) {
47 cache_.insert(TestCacheKey(1), "hello");
48 cache_.insert(TestCacheKey(2), "hello");
49 cache_.insert(TestCacheKey(1), "hello");
50 cache_.insert(TestCacheKey(3), "hello");
51 // should have evicted key 1
52 ASSERT_EQ(2, cache_.size());
53 ASSERT_EQ(cache_.get(TestCacheKey(1)), std::nullopt);
54}
55
56TEST_F(TestLruCache, TestLruBehavior) {
57 cache_.insert(TestCacheKey(1), "hello");

Callers

nothing calls this directly

Calls 4

TestCacheKeyClass · 0.70
insertMethod · 0.45
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected