[SERVER-71465] Add composing-matchers (AnyOf, AllOf) for dynamic ranges of matchers Created: 17/Nov/22 Updated: 02/Feb/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | George Wangensteen | Assignee: | Backlog - Service Architecture |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Service Arch
|
| Participants: |
| Description |
|
The unittest ASSERT_THAT/matchers API has some matchers that compose other matchers so that they "match" when AnyOf or AllOf the matchers they compose over match. But these composing-matchers only work over a statically sized pack of matchers, not a dynamic range (like a std::vector). Let's add some similar matchers that work over a dynmically sized range, using something like the STL (begin, end) iterator range APis. |