Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/interfaces
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-08-11 15:46:03 +0200
committerMartin Hořeňovský2020-08-11 17:47:00 +0200
commitb0531404e4cdd31d63bebbc21d9a4556922a0626 (patch)
treece272bad4886fae2486ed5e96a8be8cfccd501a6 /src/catch2/interfaces
parent60cc4c293d4d7d984a0f01397270ce592a397de5 (diff)
downloadcatch3-b0531404e4cdd31d63bebbc21d9a4556922a0626.tar.gz
Turn RunTests into TestRunOrder enum class
Diffstat (limited to 'src/catch2/interfaces')
-rw-r--r--src/catch2/interfaces/catch_interfaces_config.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/catch2/interfaces/catch_interfaces_config.hpp b/src/catch2/interfaces/catch_interfaces_config.hpp
index 39cc2bf7..2ebfd411 100644
--- a/src/catch2/interfaces/catch_interfaces_config.hpp
+++ b/src/catch2/interfaces/catch_interfaces_config.hpp
@@ -34,11 +34,11 @@ namespace Catch {
Always,
Never
};
- struct RunTests { enum InWhatOrder {
- InDeclarationOrder,
- InLexicographicalOrder,
- InRandomOrder
- }; };
+ enum class TestRunOrder {
+ Declared,
+ LexicographicallySorted,
+ Randomized
+ };
struct UseColour { enum YesOrNo {
Auto,
Yes,
@@ -71,7 +71,7 @@ namespace Catch {
virtual TestSpec const& testSpec() const = 0;
virtual bool hasTestFilters() const = 0;
virtual std::vector<std::string> const& getTestsOrTags() const = 0;
- virtual RunTests::InWhatOrder runOrder() const = 0;
+ virtual TestRunOrder runOrder() const = 0;
virtual unsigned int rngSeed() const = 0;
virtual UseColour::YesOrNo useColour() const = 0;
virtual std::vector<std::string> const& getSectionsToRun() const = 0;