MCPcopy Create free account
hub / github.com/RenderKit/embree / Colour

Class Colour

tutorials/external/catch.hpp:5353–5401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5351namespace Catch {
5352
5353 struct Colour {
5354 enum Code {
5355 None = 0,
5356
5357 White,
5358 Red,
5359 Green,
5360 Blue,
5361 Cyan,
5362 Yellow,
5363 Grey,
5364
5365 Bright = 0x10,
5366
5367 BrightRed = Bright | Red,
5368 BrightGreen = Bright | Green,
5369 LightGrey = Bright | Grey,
5370 BrightWhite = Bright | White,
5371 BrightYellow = Bright | Yellow,
5372
5373 // By intention
5374 FileName = LightGrey,
5375 Warning = BrightYellow,
5376 ResultError = BrightRed,
5377 ResultSuccess = BrightGreen,
5378 ResultExpectedFailure = Warning,
5379
5380 Error = BrightRed,
5381 Success = Green,
5382
5383 OriginalExpression = Cyan,
5384 ReconstructedExpression = BrightYellow,
5385
5386 SecondaryText = LightGrey,
5387 Headers = White
5388 };
5389
5390 // Use constructed object for RAII guard
5391 Colour( Code _colourCode );
5392 Colour( Colour&& other ) noexcept;
5393 Colour& operator=( Colour&& other ) noexcept;
5394 ~Colour();
5395
5396 // Use static method for one-shot changes
5397 static void use( Code _colourCode );
5398
5399 private:
5400 bool m_moved = false;
5401 };
5402
5403 std::ostream& operator << ( std::ostream& os, Colour const& );
5404

Callers 5

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

Calls

no outgoing calls

Tested by

no test coverage detected