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

Method SetUp

be/src/runtime/tmp-file-mgr-test.cc:84–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 public:
83 static const int DEFAULT_PRIORITY = numeric_limits<int>::max();
84 virtual void SetUp() {
85 // Reset query options that are modified by tests.
86 FLAGS_disk_spill_encryption = false;
87 FLAGS_disk_spill_compression_codec = "";
88 FLAGS_disk_spill_punch_holes = false;
89#ifndef NDEBUG
90 FLAGS_stress_scratch_write_delay_ms = 0;
91#endif
92 FLAGS_remote_tmp_file_size = "8MB";
93 FLAGS_remote_read_memory_buffer_size = "1GB";
94 FLAGS_remote_batch_read = false;
95
96 metrics_.reset(new MetricGroup("tmp-file-mgr-test"));
97 profile_ = RuntimeProfile::Create(&obj_pool_, "tmp-file-mgr-test");
98 test_env_.reset(new TestEnv);
99 ASSERT_OK(test_env_->Init());
100 cb_counter_ = 0;
101 remote_url_ = test_env_->GetDefaultFsPath("/tmp");
102 }
103
104 virtual void TearDown() {
105 test_env_.reset();

Callers

nothing calls this directly

Calls 4

CreateClass · 0.85
GetDefaultFsPathMethod · 0.80
resetMethod · 0.65
InitMethod · 0.45

Tested by

no test coverage detected