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

Method red

test/test.cpp:280–284  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

278
279///////////////////////////////////////////////////////////////////////////////
280std::string UnitTest::red(const std::string& input) {
281 if (isatty(fileno(stdout))) return std::string("\033[31m" + input + "\033[0m");
282
283 return input;
284}
285
286///////////////////////////////////////////////////////////////////////////////
287std::string UnitTest::green(const std::string& input) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected