Split out colour mode string parsing into its own function

This commit is contained in:
Martin Hořeňovský committed 2022-04-05 13:42:06 +02:00
1 parent c045733d05
commit d750da13a8
3 files changed
+41 -1

No files matched your search

@@ -8,6 +8,7 @@
#ifndef CATCH_REPORTER_SPEC_PARSER_HPP_INCLUDED
#define CATCH_REPORTER_SPEC_PARSER_HPP_INCLUDED
#include <catch2/internal/catch_optional.hpp>
#include <catch2/internal/catch_stringref.hpp>
#include <vector>
@@ -15,9 +16,13 @@
namespace Catch {
enum class ColourMode : std::uint8_t;
namespace Detail {
//! Splits the reporter spec into reporter name and kv-pair options
std::vector<std::string> splitReporterSpec( StringRef reporterSpec );
Optional<ColourMode> stringToColourMode( StringRef colourMode );
}
}