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

Function TEST_P

be/src/kudu/util/file_cache-test.cc:356–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354INSTANTIATE_TEST_SUITE_P(, RandomAccessFileCacheTest, ::testing::Values(false, true));
355
356TEST_P(RandomAccessFileCacheTest, TestMemoryFootprintDoesNotCrash) {
357 SetEncryptionFlags(GetParam());
358 const string kFile = this->GetTestPath("foo");
359 ASSERT_OK(this->WriteTestFile(kFile, "test data"));
360
361 shared_ptr<RandomAccessFile> f;
362 ASSERT_OK(cache_->OpenFile<Env::MUST_EXIST>(kFile, &f));
363
364 // This used to crash due to a kudu_malloc_usable_size() call on a memory
365 // address that wasn't the start of an actual heap allocation.
366 LOG(INFO) << f->memory_footprint();
367}
368
369class RWFileCacheTest :
370 public FileCacheTest<RWFile>,

Callers

nothing calls this directly

Calls 12

DefaultClass · 0.85
GetTestPathMethod · 0.80
WriteTestFileMethod · 0.80
NewRWFileMethod · 0.80
memory_footprintMethod · 0.45
SyncMethod · 0.45
DeleteFileMethod · 0.45
WriteMethod · 0.45
InitMethod · 0.45
SizeMethod · 0.45
ReadMethod · 0.45

Tested by

no test coverage detected