MCPcopy Create free account
hub / github.com/avast/retdec / refGetValueOrDefaultTestGetSomeNumbers

Function refGetValueOrDefaultTestGetSomeNumbers

tests/utils/container_tests.cpp:115–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113
114template<class ContainerType>
115void refGetValueOrDefaultTestGetSomeNumbers(
116 const ContainerType &container) {
117 EXPECT_EQ(3, getValueOrDefault(container, 3, 5));
118 EXPECT_EQ(5, getValueOrDefault(container, 0, 5));
119 EXPECT_EQ(int(), getValueOrDefault(container, 11));
120}
121
122TEST_F(ContainerTests,
123GetValueOrDefaultForSet) {

Callers 1

TEST_FFunction · 0.85

Calls 1

getValueOrDefaultFunction · 0.85

Tested by

no test coverage detected