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

Method WriteTestFile

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

Source from the content-addressed store, hash-verified

97 }
98
99 Status WriteTestFile(const string& name, const string& data) {
100 unique_ptr<RWFile> f;
101 RWFileOptions opts;
102 opts.is_sensitive = true;
103 RETURN_NOT_OK(env_->NewRWFile(opts, name, &f));
104 RETURN_NOT_OK(f->Write(f->GetEncryptionHeaderSize(), data));
105 return Status::OK();
106 }
107
108 void AssertFdsAndDescriptors(int num_expected_fds,
109 int num_expected_descriptors) {

Callers 2

TYPED_TESTFunction · 0.80
TEST_PFunction · 0.80

Calls 4

OKFunction · 0.85
NewRWFileMethod · 0.80
WriteMethod · 0.45

Tested by

no test coverage detected