Skip to main content

colours Struct

Colours used to highlight pass and fail results in test reports. More...

Declaration​

struct micro_os_plus::micro_test_plus::detail::colours { ... }

Included Headers​

Public Member Attributes Index​

const char *fail = ""

Terminal colour sequence for failing tests. More...

const char *none = ""

Terminal colour reset sequence. More...

const char *pass = ""

Terminal colour sequence for passing tests. More...

Description​

Colours used to highlight pass and fail results in test reports.

The colours structure defines ANSI escape sequences for terminal output, enabling colour-coded highlighting of test outcomes. The pass member specifies the colour for successful results (typically green), while the fail member specifies the colour for failed results (typically red). The none member resets the colour to the terminal default.

By default all members are empty strings, so no escape sequences are emitted; reporters that support colours assign colours_red_green.

Definition at line 154 of file expression-formatter.h.

Public Member Attributes​

fail​

none​

pass​

const char* micro_os_plus::micro_test_plus::detail::colours::pass = ""

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.