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

Method MatchAndExplain

cpp/src/arrow/testing/matchers.h:295–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293 void DescribeNegationTo(::std::ostream* os) const override { *os << "is not ok"; }
294
295 bool MatchAndExplain(const Res& maybe_value,
296 testing::MatchResultListener* listener) const override {
297 const Status& status = ToStatus(maybe_value);
298
299 const bool match = status.ok();
300 *listener << "whose " << (match ? "non-error matches" : "error doesn't match");
301 return match;
302 }
303 };
304
305 return testing::Matcher<Res>(new Impl());

Callers 5

TESTFunction · 0.45
TESTFunction · 0.45
MatchAndExplainMethod · 0.45
MatchAndExplainMethod · 0.45
MatchAndExplainMethod · 0.45

Calls 2

ToStatusFunction · 0.85
okMethod · 0.45

Tested by 2

TESTFunction · 0.36
TESTFunction · 0.36