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

Class CelValueEqualImpl

eval/public/testing/matchers.cc:27–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using ::testing::MatchResultListener;
26
27class CelValueEqualImpl : public MatcherInterface<CelValue> {
28 public:
29 explicit CelValueEqualImpl(const CelValue& v) : value_(v) {}
30
31 bool MatchAndExplain(CelValue arg,
32 MatchResultListener* listener) const override {
33 return CelValueEqual(arg, value_);
34 }
35
36 void DescribeTo(std::ostream* os) const override {
37 *os << value_.DebugString();
38 }
39
40 private:
41 const CelValue& value_;
42};
43
44// used to implement matchers for CelValues
45template <typename UnderlyingType>

Callers 3

TEST_PFunction · 0.50
TESTFunction · 0.50
ContainsMethod · 0.50

Calls

no outgoing calls

Tested by 2

TEST_PFunction · 0.40
TESTFunction · 0.40