Debian Codegraph @

3rdparty/catch2/tests/ExtraTests/X34-DuplicatedTestCaseMethodsDifferentFixtures.cpp

raw symbols SCIP
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 /**\file
10 * Checks that test case methods with different class, but same name and
11 * tags name and tags are not reported as error.
12 */
13
14 #include <catch2/catch_test_macros.hpp>
15
16 class TestCaseFixture1 {
17 public:
18 int m_a;
19 };
20
21 class TestCaseFixture2 {
22 public:
23 int m_a;
24 };
25
26 TEST_CASE_METHOD(TestCaseFixture1, "A test case with duplicated name and tags", "[tag1]") {}
27 TEST_CASE_METHOD(TestCaseFixture2, "A test case with duplicated name and tags", "[tag1]") {}