Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
catch_interfaces_config.h
Go to the documentation of this file.
1/*
2 * Created by Phil on 05/06/2012.
3 * Copyright 2012 Two Blue Cubes Ltd. All rights reserved.
4 *
5 * Distributed under the Boost Software License, Version 1.0. (See accompanying
6 * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 */
8#ifndef TWOBLUECUBES_CATCH_INTERFACES_CONFIG_H_INCLUDED
9#define TWOBLUECUBES_CATCH_INTERFACES_CONFIG_H_INCLUDED
10
11#include "catch_common.h"
12
13#include <iosfwd>
14#include <string>
15#include <vector>
16#include <memory>
17
18namespace Catch {
19
20 enum class Verbosity {
21 Quiet = 0,
22 Normal,
23 High
24 };
25
26 struct WarnAbout { enum What {
27 Nothing = 0x00,
29 NoTests = 0x02
30 }; };
31
42 struct UseColour { enum YesOrNo {
45 No
46 }; };
53
54 class TestSpec;
55
56 struct IConfig : NonCopyable {
57
58 virtual ~IConfig();
59
60 virtual bool allowThrows() const = 0;
61 virtual std::ostream& stream() const = 0;
62 virtual std::string name() const = 0;
63 virtual bool includeSuccessfulResults() const = 0;
64 virtual bool shouldDebugBreak() const = 0;
65 virtual bool warnAboutMissingAssertions() const = 0;
66 virtual bool warnAboutNoTests() const = 0;
67 virtual int abortAfter() const = 0;
68 virtual bool showInvisibles() const = 0;
70 virtual TestSpec const& testSpec() const = 0;
71 virtual bool hasTestFilters() const = 0;
72 virtual std::vector<std::string> const& getTestsOrTags() const = 0;
73 virtual RunTests::InWhatOrder runOrder() const = 0;
74 virtual unsigned int rngSeed() const = 0;
75 virtual int benchmarkResolutionMultiple() const = 0;
76 virtual UseColour::YesOrNo useColour() const = 0;
77 virtual std::vector<std::string> const& getSectionsToRun() const = 0;
78 virtual Verbosity verbosity() const = 0;
79 };
80
81 using IConfigPtr = std::shared_ptr<IConfig const>;
82}
83
84#endif // TWOBLUECUBES_CATCH_INTERFACES_CONFIG_H_INCLUDED
std::shared_ptr< IConfig const > IConfigPtr
virtual ~IConfig()
virtual RunTests::InWhatOrder runOrder() const =0
virtual bool includeSuccessfulResults() const =0
virtual bool warnAboutNoTests() const =0
virtual int abortAfter() const =0
virtual std::vector< std::string > const & getTestsOrTags() const =0
virtual bool hasTestFilters() const =0
virtual std::ostream & stream() const =0
virtual Verbosity verbosity() const =0
virtual bool shouldDebugBreak() const =0
virtual TestSpec const & testSpec() const =0
virtual bool warnAboutMissingAssertions() const =0
virtual int benchmarkResolutionMultiple() const =0
virtual UseColour::YesOrNo useColour() const =0
virtual std::string name() const =0
virtual bool showInvisibles() const =0
virtual bool allowThrows() const =0
virtual ShowDurations::OrNot showDurations() const =0
virtual unsigned int rngSeed() const =0
virtual std::vector< std::string > const & getSectionsToRun() const =0