| 28 | using namespace cppmicroservices; |
| 29 | |
| 30 | TEST(AnyMapTest, CheckExceptions) |
| 31 | { |
| 32 | // Testing throw of invalid_argument from the free function |
| 33 | // AtCompoundKey(const AnyMap& m, const AnyMap::key_type& key) |
| 34 | AnyMap uo(AnyMap::UNORDERED_MAP); |
| 35 | uo["hi"] = std::string("hi"); |
| 36 | EXPECT_THROW(uo.AtCompoundKey("hi."), std::invalid_argument); |
| 37 | } |
| 38 | |
| 39 | TEST(AnyMapTest, AtCompoundKey) |
| 40 | { |
nothing calls this directly
no test coverage detected