MCPcopy Create free account
hub / github.com/apache/impala / SetUp

Method SetUp

be/src/util/cache/cache-bench.cc:98–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 public testing::WithParamInterface<BenchSetup>{
97 public:
98 void SetUp() override {
99 cache_.reset(NewCache(Cache::ParseEvictionPolicy(FLAGS_eviction_policy),
100 kCacheCapacity, "test-cache"));
101 Status status = cache_->Init();
102 ASSERT_OK(status);
103 }
104
105 // Run queries against the cache until '*done' becomes true.
106 // Returns a pair of the number of cache hits and lookups.

Callers

nothing calls this directly

Calls 3

NewCacheFunction · 0.85
resetMethod · 0.65
InitMethod · 0.45

Tested by

no test coverage detected