MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / Colour

Class Colour

tests/catch.hpp:5092–5140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5090namespace Catch {
5091
5092 struct Colour {
5093 enum Code {
5094 None = 0,
5095
5096 White,
5097 Red,
5098 Green,
5099 Blue,
5100 Cyan,
5101 Yellow,
5102 Grey,
5103
5104 Bright = 0x10,
5105
5106 BrightRed = Bright | Red,
5107 BrightGreen = Bright | Green,
5108 LightGrey = Bright | Grey,
5109 BrightWhite = Bright | White,
5110 BrightYellow = Bright | Yellow,
5111
5112 // By intention
5113 FileName = LightGrey,
5114 Warning = BrightYellow,
5115 ResultError = BrightRed,
5116 ResultSuccess = BrightGreen,
5117 ResultExpectedFailure = Warning,
5118
5119 Error = BrightRed,
5120 Success = Green,
5121
5122 OriginalExpression = Cyan,
5123 ReconstructedExpression = BrightYellow,
5124
5125 SecondaryText = LightGrey,
5126 Headers = White
5127 };
5128
5129 // Use constructed object for RAII guard
5130 Colour( Code _colourCode );
5131 Colour( Colour&& other ) noexcept;
5132 Colour& operator=( Colour&& other ) noexcept;
5133 ~Colour();
5134
5135 // Use static method for one-shot changes
5136 static void use( Code _colourCode );
5137
5138 private:
5139 bool m_moved = false;
5140 };
5141
5142 std::ostream& operator << ( std::ostream& os, Colour const& );
5143

Callers 4

applyCommandLineMethod · 0.85
printTotalsMethod · 0.85
printSummaryRowMethod · 0.85
printTotalsDividerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected