MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / TEST

Function TEST

framework/test/gtest/AnyMapTest.cpp:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28using namespace cppmicroservices;
29
30TEST(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
39TEST(AnyMapTest, AtCompoundKey)
40{

Callers

nothing calls this directly

Calls 15

AnyMapClass · 0.85
any_value_to_stringFunction · 0.85
any_value_to_jsonFunction · 0.85
manifest_from_cacheFunction · 0.85
any_value_to_cppFunction · 0.85
AtCompoundKeyMethod · 0.80
cbeginMethod · 0.80
cendMethod · 0.80
atMethod · 0.80
AnyClass · 0.50
beginMethod · 0.45

Tested by

no test coverage detected