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

Method SetUp

be/src/runtime/bufferpool/buffer-allocator-test.cc:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42class BufferAllocatorTest : public ::testing::Test {
43 public:
44 virtual void SetUp() {
45 test_env_.reset(new TestEnv);
46 test_env_->DisableBufferPool();
47 ASSERT_OK(test_env_->Init());
48 MetricGroup* dummy_metrics = obj_pool_.Add(new MetricGroup("test"));
49 dummy_pool_ = obj_pool_.Add(new BufferPool(dummy_metrics, 1, 0, 0));
50 dummy_reservation_.InitRootTracker(nullptr, 0);
51 ASSERT_OK(dummy_pool_->RegisterClient("", nullptr, &dummy_reservation_, nullptr, 0,
52 RuntimeProfile::Create(&obj_pool_, ""), &dummy_client_));
53 }
54
55 virtual void TearDown() {
56 dummy_pool_->DeregisterClient(&dummy_client_);

Callers

nothing calls this directly

Calls 7

CreateClass · 0.85
DisableBufferPoolMethod · 0.80
InitRootTrackerMethod · 0.80
resetMethod · 0.65
InitMethod · 0.45
AddMethod · 0.45
RegisterClientMethod · 0.45

Tested by

no test coverage detected