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

Function AssertRaisesWithErrno

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

Source from the content-addressed store, hash-verified

88void ValidateTimePoint(TimePoint tp) { ASSERT_GE(tp.time_since_epoch().count(), 0); }
89
90void AssertRaisesWithErrno(int expected_errno, const Status& st) {
91 ASSERT_RAISES(IOError, st);
92 ASSERT_EQ(::arrow::internal::ErrnoFromStatus(st), expected_errno);
93}
94
95template <typename T>
96void AssertRaisesWithErrno(int expected_errno, const Result<T>& result) {

Calls 2

ErrnoFromStatusFunction · 0.70
statusMethod · 0.45

Tested by

no test coverage detected