MCPcopy Create free account
hub / github.com/apache/arrow / OpenFileDescriptor

Method OpenFileDescriptor

cpp/src/arrow/io/file_test.cc:98–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 }
97
98 void OpenFileDescriptor() {
99 ASSERT_OK_AND_ASSIGN(auto file_name, PlatformFilename::FromString(path_));
100 ASSERT_OK_AND_ASSIGN(
101 FileDescriptor fd,
102 FileOpenWritable(file_name, true /* write_only */, false /* truncate */));
103 ASSERT_OK_AND_ASSIGN(file_, FileOutputStream::Open(fd.Detach()));
104 }
105
106 protected:
107 std::shared_ptr<FileOutputStream> file_;

Callers

nothing calls this directly

Calls 2

ASSERT_OK_AND_ASSIGNFunction · 0.50
DetachMethod · 0.45

Tested by

no test coverage detected