Returns a matcher that tests the elements of a cel::ListValue on a given matcher as if they were a std::vector . ValueManager* mgr must remain valid for the lifetime of the matcher.
| 168 | // matcher as if they were a std::vector<cel::Value>. |
| 169 | // ValueManager* mgr must remain valid for the lifetime of the matcher. |
| 170 | inline ListValueElementsMatcher ListValueElements( |
| 171 | testing::Matcher<std::vector<Value>>&& m, |
| 172 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool |
| 173 | ABSL_ATTRIBUTE_LIFETIME_BOUND, |
| 174 | google::protobuf::MessageFactory* absl_nonnull message_factory |
| 175 | ABSL_ATTRIBUTE_LIFETIME_BOUND, |
| 176 | google::protobuf::Arena* absl_nonnull arena ABSL_ATTRIBUTE_LIFETIME_BOUND) { |
| 177 | return ListValueElementsMatcher(std::move(m), descriptor_pool, |
| 178 | message_factory, arena); |
| 179 | } |
| 180 | |
| 181 | class MapValueElementsMatcher { |
| 182 | public: |
no test coverage detected