MCPcopy Create free account
hub / github.com/cutdigital/mcut / UTEST_F

Function UTEST_F

tests/source/createContext.cpp:213–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213UTEST_F(DebugContextConfig, queryContextDebugFlag)
214{
215 McSize bytes;
216 McFlags flags;
217 EXPECT_EQ(mcGetInfo(utest_fixture->context_, MC_CONTEXT_FLAGS, 0, nullptr, &bytes), MC_NO_ERROR);
218 EXPECT_EQ(bytes, sizeof(McFlags));
219
220 EXPECT_EQ(mcGetInfo(utest_fixture->context_, MC_CONTEXT_FLAGS, sizeof(McFlags), &flags, nullptr), MC_NO_ERROR);
221
222 EXPECT_EQ(flags & MC_DEBUG, MC_DEBUG);
223}
224
225UTEST_F(DebugContextConfig, setDebugCallback)
226{

Callers

nothing calls this directly

Calls 3

mcGetInfoFunction · 0.85
mcDebugMessageCallbackFunction · 0.85
mcDebugMessageControlFunction · 0.85

Tested by

no test coverage detected