MCPcopy Create free account
hub / github.com/Kitware/CMake / testDebug

Function testDebug

Tests/CMakeLib/testDebug.cxx:14–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 } while (false)
13
14int testDebug(int argc, char** const /*argv*/)
15{
16 if (argc != 1) {
17 std::cout << "Invalid arguments.\n";
18 return -1;
19 }
20
21 int retval = 0;
22 check(CM_DBG(true), true);
23 check(CM_DBG(4), 4);
24 check(CM_DBG(1.), 1.);
25 check(CM_DBG('c'), 'c');
26 check(CM_DBG("literal string"), std::string("literal string"));
27
28 std::string str = "std string";
29 check(CM_DBG(str), "std string");
30 check(CM_DBG(str.empty()), false);
31
32 return retval;
33}

Callers

nothing calls this directly

Calls 2

checkFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…