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

Function ASSERT_OK_AND_ASSIGN

cpp/src/arrow/filesystem/s3fs_test.cc:1111–1119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1109 const std::string file_path = dir_path + "/" + file_name;
1110 expected_infos.emplace_back(file_path, FileType::File);
1111 ASSERT_OK_AND_ASSIGN(Future<> task,
1112 ::arrow::internal::GetCpuThreadPool()->Submit(
1113 [fs = fs_, file_name, file_path]() -> Status {
1114 ARROW_ASSIGN_OR_RAISE(
1115 std::shared_ptr<io::OutputStream> out_str,
1116 fs->OpenOutputStream(file_path));
1117 ARROW_RETURN_NOT_OK(out_str->Write(file_name));
1118 return out_str->Close();
1119 }));
1120 tasks.push_back(std::move(task));
1121 }
1122 ASSERT_FINISHES_OK(AllFinished(tasks));

Callers 15

TEST_FFunction · 0.70
MakeFileSystemFunction · 0.70
TestOpenOutputStreamFunction · 0.70
SetUpMethod · 0.70
TESTFunction · 0.70
TestFileSystemFromUriMethod · 0.70
TestGetFileInfoMethod · 0.70
TEST_FFunction · 0.70

Calls 4

ARROW_ASSIGN_OR_RAISEFunction · 0.50
OpenOutputStreamMethod · 0.45
WriteMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected