Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/helpers/parse_test_spec.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2022-10-28 00:16:38 +0200
committerMartin Hořeňovský2022-10-28 13:27:46 +0200
commit3b40cf13eb5f56f83c3c5df4c61227187e3fe15d (patch)
treee142d4127d3638c54b1be2d64ae2ef66c2ac607a /tests/SelfTest/helpers/parse_test_spec.cpp
parent223d8d638297454638459f7f6ef7db60b1adae99 (diff)
downloadcatch3-3b40cf13eb5f56f83c3c5df4c61227187e3fe15d.tar.gz
Split out parseTestSpec into test-only helpers
Diffstat (limited to 'tests/SelfTest/helpers/parse_test_spec.cpp')
-rw-r--r--tests/SelfTest/helpers/parse_test_spec.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/SelfTest/helpers/parse_test_spec.cpp b/tests/SelfTest/helpers/parse_test_spec.cpp
new file mode 100644
index 00000000..2431d524
--- /dev/null
+++ b/tests/SelfTest/helpers/parse_test_spec.cpp
@@ -0,0 +1,22 @@
+
+// Copyright Catch2 Authors
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// https://www.boost.org/LICENSE_1_0.txt)
+
+// SPDX-License-Identifier: BSL-1.0
+
+#include <helpers/parse_test_spec.hpp>
+
+#include <catch2/internal/catch_test_spec_parser.hpp>
+#include <catch2/interfaces/catch_interfaces_tag_alias_registry.hpp>
+
+namespace Catch {
+
+ TestSpec parseTestSpec( std::string const& arg ) {
+ return TestSpecParser( ITagAliasRegistry::get() )
+ .parse( arg )
+ .testSpec();
+ }
+
+} // namespace Catch