MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / notok

Method notok

test/test.cpp:99–112  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

97
98///////////////////////////////////////////////////////////////////////////////
99void UnitTest::notok(bool expression, const std::string& name, bool expfail /* = false */) {
100 ++_counter;
101
102 bool success = not expression;
103
104 if (success and !expfail) {
105 ++_passed;
106 std::cout << green("ok") << " " << _counter << " - " << name << '\n';
107 } else {
108 if (success == expfail) ++_failed;
109 std::cout << red("not ok") << " " << _counter << " - " << name
110 << (expfail ? (success ? " # FIXED" : " # TODO") : "") << '\n';
111 }
112}
113
114///////////////////////////////////////////////////////////////////////////////
115void UnitTest::is(bool actual, bool expected, const std::string& name, bool expfail /* = false */) {

Callers 5

TEST_NAMEFunction · 0.80
TEST_NAMEFunction · 0.80
TEST_NAMEFunction · 0.80
TEST_NAMEFunction · 0.80
TEST_NAMEFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected