MCPcopy Create free account
hub / github.com/catchorg/Catch2 / stringToColourMode

Function stringToColourMode

extras/catch_amalgamated.cpp:5695–5707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5693 }
5694
5695 Optional<ColourMode> stringToColourMode( StringRef colourMode ) {
5696 if ( colourMode == "default" ) {
5697 return ColourMode::PlatformDefault;
5698 } else if ( colourMode == "ansi" ) {
5699 return ColourMode::ANSI;
5700 } else if ( colourMode == "win32" ) {
5701 return ColourMode::Win32;
5702 } else if ( colourMode == "none" ) {
5703 return ColourMode::None;
5704 } else {
5705 return {};
5706 }
5707 }
5708 } // namespace Detail
5709
5710

Callers 3

makeCommandLineParserFunction · 0.70
parseReporterSpecFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected