MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / TEST_F

Function TEST_F

runtime/NanoLogCpp17Test.cc:73–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71};
72
73TEST_F(NanoLogCpp17Test, getParamInfo_constexpr) {
74 constexpr ParamType ret1 = getParamInfo("Hello World %*.*s asdf", 1);
75 EXPECT_EQ(ParamType::DYNAMIC_PRECISION, ret1);
76
77 constexpr ParamType ret2 = getParamInfo("Hello World %*.*s asdf", 2);
78 EXPECT_EQ(ParamType::STRING_WITH_DYNAMIC_PRECISION, ret2);
79
80 constexpr ParamType ret3 = getParamInfo("Hello World %*.*s asdf", 3);
81 EXPECT_EQ(ParamType::INVALID, ret3);
82}
83
84TEST_F(NanoLogCpp17Test, getParamInfo) {
85 // Regular testing

Callers

nothing calls this directly

Calls 10

getParamInfoFunction · 0.85
ParamTypeEnum · 0.85
countFmtParamsFunction · 0.85
getNumNibblesNeededFunction · 0.85
store_argumentFunction · 0.85
store_argumentsFunction · 0.85
getArgSizeFunction · 0.85
staticStrlenFunction · 0.85
getArgSizesFunction · 0.85
packFunction · 0.85

Tested by

no test coverage detected