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

Method Replace

cpp/src/arrow/util/cache_test.cc:79–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 const V* Find(Cache* cache, int num) { return cache->Find(MakeKey(num)); }
78
79 bool Replace(Cache* cache, int num, int value_num) {
80 auto pair = cache->Replace(MakeKey(num), V{value_num});
81 EXPECT_NE(pair.second, nullptr);
82 EXPECT_EQ(*pair.second, V{value_num});
83 return pair.first;
84 }
85};
86
87TEST_F(TestLruCache, Basics) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected