| 1 | |
| 2 | // Copyright Catch2 Authors |
| 3 | // Distributed under the Boost Software License, Version 1.0. |
| 4 | // (See accompanying file LICENSE.txt or copy at |
| 5 | // https://www.boost.org/LICENSE_1_0.txt) |
| 6 | |
| 7 | // SPDX-License-Identifier: BSL-1.0 |
| 8 | |
| 9 | #include <helpers/parse_test_spec.hpp> |
| 10 | |
| 11 | #include <catch2/internal/catch_test_spec_parser.hpp> |
| 12 | #include <catch2/interfaces/catch_interfaces_tag_alias_registry.hpp> |
| 13 | |
| 14 | namespace Catch { |
| 15 | |
| 16 | TestSpec parseTestSpec( std::string const& arg ) { |
| 17 | return TestSpecParser( ITagAliasRegistry::get() ) |
| 18 | .parse( arg ) |
| 19 | .testSpec(); |
| 20 | } |
| 21 | |
| 22 | } // namespace Catch |