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

Function CreateFile

cpp/src/arrow/filesystem/test_util.cc:129–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129void CreateFile(FileSystem* fs, const std::string& path, const std::string& data) {
130 ASSERT_OK_AND_ASSIGN(auto stream, fs->OpenOutputStream(path));
131 ASSERT_OK(stream->Write(data));
132 ASSERT_OK(stream->Close());
133}
134
135void SortInfos(std::vector<FileInfo>* infos) {
136 std::sort(infos->begin(), infos->end(), FileInfo::ByPath{});

Callers 15

TEST_FFunction · 0.85
TestGetFileInfoMethod · 0.85
TEST_FFunction · 0.85
TestGlobFilesFunction · 0.85
CreateFileMethod · 0.85
TEST_FFunction · 0.85
TestCreateDirMethod · 0.85
TestDeleteDirMethod · 0.85
TestDeleteDirContentsMethod · 0.85
TestDeleteFileMethod · 0.85
TestDeleteFilesMethod · 0.85

Calls 2

WriteMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected