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

Method green

test/test.cpp:287–291  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

285
286///////////////////////////////////////////////////////////////////////////////
287std::string UnitTest::green(const std::string& input) {
288 if (isatty(fileno(stdout))) return std::string("\033[32m" + input + "\033[0m");
289
290 return input;
291}
292
293///////////////////////////////////////////////////////////////////////////////
294std::string UnitTest::yellow(const std::string& input) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected