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

Method OpenFileDescriptor

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

Source from the content-addressed store, hash-verified

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