MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / TEST_F

Function TEST_F

tests/cplusplus/Common/RegStringMap.cpp:81–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79};
80
81TEST_F(RegisteredStringMapTest, checkExistingValues) {
82
83 regMap.clearModifiedFlag();
84
85 StringID regID = regMap.getStringID("RegVal0");
86 ASSERT_FALSE(regMap.isModified());
87 ASSERT_EQ(3, regMap.getEntries().size());
88 ASSERT_EQ(0, regID.value());
89
90 regID = regMap.getStringID("RegVal1");
91 ASSERT_FALSE(regMap.isModified());
92 ASSERT_EQ(3, regMap.getEntries().size());
93 ASSERT_EQ(1, regID.value());
94
95 regID = regMap.getStringID("RegVal2");
96 ASSERT_FALSE(regMap.isModified());
97 ASSERT_EQ(3, regMap.getEntries().size());
98 ASSERT_EQ(2, regID.value());
99}
100
101TEST_F(RegisteredStringMapTest, getValues) {
102

Callers

nothing calls this directly

Calls 10

clearModifiedFlagMethod · 0.80
getStringIDMethod · 0.80
isModifiedMethod · 0.80
valueMethod · 0.80
getStringFromIdMethod · 0.80
convertPeerToLocalIDMethod · 0.80
setupPeerMappingsMethod · 0.80
sizeMethod · 0.45
getEntriesMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected