| 71 | }; |
| 72 | |
| 73 | TEST_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 | |
| 84 | TEST_F(NanoLogCpp17Test, getParamInfo) { |
| 85 | // Regular testing |
nothing calls this directly
no test coverage detected