| 7 | using namespace testing; |
| 8 | |
| 9 | TEST(IterateKeys, ConstMappingIteration) { |
| 10 | const std::map<int, int> squares{ |
| 11 | {1, 1}, |
| 12 | {2, 4}, |
| 13 | {3, 9}, |
| 14 | }; |
| 15 | EXPECT_THAT( |
| 16 | IterateKeys(squares), |
| 17 | ElementsAre(1, 2, 3) |
| 18 | ); |
| 19 | } |
| 20 | |
| 21 | TEST(IterateKeys, ConstMultiMappingIteration) { |
| 22 | const std::multimap<int, int> primesBelow{ |
nothing calls this directly
no test coverage detected