mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-18 02:45:40 +02:00
Refactoring towards interface based config
This commit is contained in:
@@ -8,13 +8,22 @@
|
||||
#ifndef TWOBLUECUBES_CATCH_INTERFACES_CONFIG_H_INCLUDED
|
||||
#define TWOBLUECUBES_CATCH_INTERFACES_CONFIG_H_INCLUDED
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "catch_ptr.hpp"
|
||||
|
||||
namespace Catch {
|
||||
|
||||
struct IConfig {
|
||||
struct IConfig : IShared {
|
||||
|
||||
virtual ~IConfig();
|
||||
|
||||
virtual bool allowThrows() const = 0;
|
||||
virtual std::ostream& stream() const = 0;
|
||||
virtual std::string name() const = 0;
|
||||
virtual bool includeSuccessfulResults() const = 0;
|
||||
virtual bool warnAboutMissingAssertions() const = 0;
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user