MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / check

Method check

tests/unit-tests/dds/DCPS/XTypes/Utils.cpp:125–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124 template <typename TopicType>
125 void check()
126 {
127 t.add_type<TopicType>();
128 DDS::DynamicType_var dt = t.get_dynamic_type<TopicType>();
129 CORBA::String_var name = dt->get_name();
130 MemberPathVec actual;
131 EXPECT_RC_OK(get_keys(dt, actual))
132 << "Happend in type " << name.in();
133 const size_t count = std::min(expected.size(), actual.size());
134 for (size_t i = 0; i < count; ++i) {
135 EXPECT_EQ(expected[i].ids, actual[i].ids)
136 << "both with i == " << i << " for type " << name.in();
137 }
138 EXPECT_EQ(expected.size(), actual.size()) << "Happend in type " << name.in();
139 }
140 };
141}
142

Callers

nothing calls this directly

Calls 4

get_keysFunction · 0.85
get_nameMethod · 0.45
inMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected