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_TAG_ALIAS_REGISTRY_H_INCLUDED
|
|
|
|
#define TWOBLUECUBES_CATCH_TAG_ALIAS_REGISTRY_H_INCLUDED
|
|
|
|
|
|
|
|
#include "catch_interfaces_tag_alias_registry.h"
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
namespace Catch {
|
|
|
|
|
|
|
|
class TagAliasRegistry : public ITagAliasRegistry {
|
|
|
|
public:
|
2017-07-20 16:57:17 +02:00
|
|
|
~TagAliasRegistry() override;
|
|
|
|
Option<TagAlias> find( std::string const& alias ) const override;
|
|
|
|
std::string expandAliases( std::string const& unexpandedTestSpec ) const override;
|
2017-03-15 10:45:37 +01:00
|
|
|
void add( std::string const& alias, std::string const& tag, SourceLineInfo const& lineInfo );
|
2014-06-30 08:33:17 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::map<std::string, TagAlias> m_registry;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace Catch
|
|
|
|
|
|
|
|
#endif // TWOBLUECUBES_CATCH_TAG_ALIAS_REGISTRY_H_INCLUDED
|