2014-06-30 08:33:17 +02:00
|
|
|
/*
|
|
|
|
* Created by Phil on 27/6/2014.
|
|
|
|
* Copyright 2014 Two Blue Cubes Ltd. All rights reserved.
|
|
|
|
*
|
|
|
|
* Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
*/
|
|
|
|
#ifndef TWOBLUECUBES_CATCH_INTERFACES_TAG_ALIAS_REGISTRY_H_INCLUDED
|
|
|
|
#define TWOBLUECUBES_CATCH_INTERFACES_TAG_ALIAS_REGISTRY_H_INCLUDED
|
|
|
|
|
2017-07-27 11:55:30 +02:00
|
|
|
#include <string>
|
2014-06-30 08:33:17 +02:00
|
|
|
|
|
|
|
namespace Catch {
|
|
|
|
|
2017-07-27 11:55:30 +02:00
|
|
|
struct TagAlias;
|
|
|
|
|
2014-06-30 08:33:17 +02:00
|
|
|
struct ITagAliasRegistry {
|
|
|
|
virtual ~ITagAliasRegistry();
|
2017-07-27 11:55:30 +02:00
|
|
|
// Nullptr if not present
|
|
|
|
virtual TagAlias const* find( std::string const& alias ) const = 0;
|
2014-06-30 08:33:17 +02:00
|
|
|
virtual std::string expandAliases( std::string const& unexpandedTestSpec ) const = 0;
|
|
|
|
|
|
|
|
static ITagAliasRegistry const& get();
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace Catch
|
|
|
|
|
|
|
|
#endif // TWOBLUECUBES_CATCH_INTERFACES_TAG_ALIAS_REGISTRY_H_INCLUDED
|