Closed copybara-service[bot] closed 3 months ago
Add a test matcher for the elements of cel::ListValue and cel::MapValue.
Instead of manually unwrapping a list or map to test their contents, they can now be matched with ListValueElements and MapValueElements, e.g.:
ASSERT_THAT(l, ListValueIs(ListValueElements(&mgr, ElementsAre(x1, x2, ...)));
ASSERT_THAT(l, MapValueIs(MapValueElements(&mgr, UnorderedElementsAre(Pair(k1, v1), ...)));
Add a test matcher for the elements of cel::ListValue and cel::MapValue.
Instead of manually unwrapping a list or map to test their contents, they can now be matched with ListValueElements and MapValueElements, e.g.:
ASSERT_THAT(l, ListValueIs(ListValueElements(&mgr, ElementsAre(x1, x2, ...)));
ASSERT_THAT(l, MapValueIs(MapValueElements(&mgr, UnorderedElementsAre(Pair(k1, v1), ...)));