MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / MatchAndExplain

Method MatchAndExplain

eval/public/testing/matchers.cc:50–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 explicit CelValueMatcherImpl(testing::Matcher<UnderlyingType> m)
49 : underlying_type_matcher_(std::move(m)) {}
50 bool MatchAndExplain(const CelValue& v,
51 testing::MatchResultListener* listener) const override {
52 UnderlyingType arg;
53 return v.GetValue(&arg) && underlying_type_matcher_.Matches(arg);
54 }
55
56 void DescribeTo(std::ostream* os) const override {
57 CelValue::Type type =

Callers

nothing calls this directly

Calls 1

GetValueMethod · 0.45

Tested by

no test coverage detected