MCPcopy Create free account
hub / github.com/commontk/CTK / TestCheckNotNull

Function TestCheckNotNull

Libs/Core/Testing/Cpp/ctkCoreTestingUtilitiesTest.cpp:62–72  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

60
61//----------------------------------------------------------------------------
62bool TestCheckNotNull()
63{
64 int foo = 1;
65 if (!CheckNotNull(__LINE__, "TestCheckNotNull", &foo)
66 || CheckNotNull(__LINE__, "TestCheckNotNull Expected Failure", 0))
67 {
68 qWarning() << "Line " << __LINE__ << " - TestCheckNotNull failed";
69 return false;
70 }
71 return true;
72}
73
74//----------------------------------------------------------------------------
75bool TestCheckNull()

Callers 1

Calls 1

CheckNotNullFunction · 0.85

Tested by

no test coverage detected