Skip to content

Commit

Permalink
chore: remove explicit catch2 and trompeloeil includes from unit-test…
Browse files Browse the repository at this point in the history
… files
  • Loading branch information
DNKpp committed Dec 17, 2024
1 parent 7ac3a2d commit 6a91271
Show file tree
Hide file tree
Showing 23 changed files with 0 additions and 118 deletions.
3 changes: 0 additions & 3 deletions test/unit-tests/Call.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

#include "mimic++/Call.hpp"

#include <catch2/catch_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>

using namespace mimicpp;

TEST_CASE(
Expand Down
6 changes: 0 additions & 6 deletions test/unit-tests/ControlPolicy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@

#include "mimic++/ControlPolicy.hpp"

#include <catch2/catch_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/generators/catch_generators_range.hpp>
#include <catch2/matchers/catch_matchers_container_properties.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>

#include "TestReporter.hpp"
#include "TestTypes.hpp"

Expand Down
9 changes: 0 additions & 9 deletions test/unit-tests/Expectation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@
#include <ranges>
#include <source_location>

#include <catch2/catch_template_test_macros.hpp>
#include <catch2/catch_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/generators/catch_generators_range.hpp>
#include <catch2/matchers/catch_matchers_container_properties.hpp>
#include <catch2/matchers/catch_matchers_range_equals.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>
#include <catch2/trompeloeil.hpp>

namespace
{
class ExpectationMock final
Expand Down
8 changes: 0 additions & 8 deletions test/unit-tests/ExpectationBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@

#include "mimic++/ExpectationBuilder.hpp"

#include <catch2/catch_template_test_macros.hpp>
#include <catch2/catch_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/generators/catch_generators_range.hpp>
#include <catch2/matchers/catch_matchers_container_properties.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>
#include <catch2/trompeloeil.hpp>

#include "TestReporter.hpp"
#include "TestTypes.hpp"

Expand Down
8 changes: 0 additions & 8 deletions test/unit-tests/ExpectationPolicies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@

#include "mimic++/ExpectationPolicies.hpp"

#include <catch2/catch_template_test_macros.hpp>
#include <catch2/catch_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/generators/catch_generators_range.hpp>
#include <catch2/matchers/catch_matchers_container_properties.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>
#include <catch2/trompeloeil.hpp>

#include "TestReporter.hpp"
#include "TestTypes.hpp"

Expand Down
4 changes: 0 additions & 4 deletions test/unit-tests/InterfaceMock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@

#include "mimic++/InterfaceMock.hpp"

#include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_container_properties.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>

#include "TestReporter.hpp"
#include "TestTypes.hpp"

Expand Down
8 changes: 0 additions & 8 deletions test/unit-tests/Matcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@
#include "mimic++/Matcher.hpp"
#include "mimic++/Printer.hpp"

#include <catch2/catch_template_test_macros.hpp>
#include <catch2/catch_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/generators/catch_generators_range.hpp>
#include <catch2/matchers/catch_matchers_container_properties.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>
#include <catch2/trompeloeil.hpp>

#include "TestTypes.hpp"

using namespace mimicpp;
Expand Down
8 changes: 0 additions & 8 deletions test/unit-tests/Mock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@

#include "mimic++/Mock.hpp"

#include <catch2/catch_template_test_macros.hpp>
#include <catch2/catch_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/generators/catch_generators_range.hpp>
#include <catch2/matchers/catch_matchers_container_properties.hpp>
#include <catch2/matchers/catch_matchers_templated.hpp>
#include <catch2/trompeloeil.hpp>

#include "TestReporter.hpp"
#include "TestTypes.hpp"

Expand Down
3 changes: 0 additions & 3 deletions test/unit-tests/ObjectWatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
#include "mimic++/ObjectWatcher.hpp"
#include "mimic++/InterfaceMock.hpp"

#include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_container_properties.hpp>

#include "SuppressionMacros.hpp"
#include "TestReporter.hpp"

Expand Down
5 changes: 0 additions & 5 deletions test/unit-tests/Printer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@

#include "mimic++/Printer.hpp"

#include <catch2/catch_template_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/matchers/catch_matchers.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>

#include <ranges>
#include <sstream>

Expand Down
6 changes: 0 additions & 6 deletions test/unit-tests/Reporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
#include "mimic++/Reporter.hpp"
#include "mimic++/Mock.hpp"

#include <catch2/catch_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/matchers/catch_matchers_container_properties.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>
#include <catch2/trompeloeil.hpp>

#include "SuppressionMacros.hpp"
#include "TestTypes.hpp"

Expand Down
4 changes: 0 additions & 4 deletions test/unit-tests/Reports.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@

#include "mimic++/Reports.hpp"

#include <catch2/catch_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>

using namespace mimicpp;

TEST_CASE(
Expand Down
7 changes: 0 additions & 7 deletions test/unit-tests/Sequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
#include "mimic++/Sequence.hpp"
#include "mimic++/Expectation.hpp"

#include <catch2/catch_template_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/generators/catch_generators_range.hpp>
#include <catch2/matchers/catch_matchers.hpp>
#include <catch2/matchers/catch_matchers_container_properties.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>

#include "TestReporter.hpp"
#include "TestTypes.hpp"

Expand Down
4 changes: 0 additions & 4 deletions test/unit-tests/String.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@

#include "mimic++/String.hpp"

#include <catch2/catch_template_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/matchers/catch_matchers_range_equals.hpp>

using namespace mimicpp;

TEMPLATE_TEST_CASE_SIG(
Expand Down
2 changes: 0 additions & 2 deletions test/unit-tests/TypeTraits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

#include "mimic++/TypeTraits.hpp"

#include <catch2/catch_template_test_macros.hpp>

#include <optional>

namespace
Expand Down
4 changes: 0 additions & 4 deletions test/unit-tests/Utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
#include "mimic++/Utility.hpp"
#include "mimic++/Printer.hpp"

#include <catch2/catch_template_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>

#include <cstdint>

using namespace mimicpp;
Expand Down
2 changes: 0 additions & 2 deletions test/unit-tests/call-conventions/GccCallConvention.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#include "mimic++/InterfaceMock.hpp"
#include "mimic++/Mock.hpp"

#include <catch2/catch_template_test_macros.hpp>

#define CALL_CONVENTION __attribute__((ms_abi))
MIMICPP_REGISTER_CALL_CONVENTION(CALL_CONVENTION, call_convention);

Expand Down
2 changes: 0 additions & 2 deletions test/unit-tests/call-conventions/Vectorcall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

MIMICPP_REGISTER_CALL_CONVENTION(__vectorcall, vectorcall_call_convention);

#include <catch2/catch_template_test_macros.hpp>

using namespace mimicpp;

TEMPLATE_TEST_CASE_SIG(
Expand Down
5 changes: 0 additions & 5 deletions test/unit-tests/matchers/RangeMatchers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@

#include "../TestTypes.hpp"

#include <catch2/catch_template_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>
#include <catch2/trompeloeil.hpp>

using namespace mimicpp;

TEST_CASE(
Expand Down
5 changes: 0 additions & 5 deletions test/unit-tests/matchers/StringContains.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@

#include "mimic++/Matcher.hpp"

#include <catch2/catch_template_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/generators/catch_generators_range.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>

#include <array>

namespace matches = mimicpp::matches;
Expand Down
5 changes: 0 additions & 5 deletions test/unit-tests/matchers/StringEndsWith.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@

#include "mimic++/Matcher.hpp"

#include <catch2/catch_template_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/generators/catch_generators_range.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>

#include <array>

namespace matches = mimicpp::matches;
Expand Down
5 changes: 0 additions & 5 deletions test/unit-tests/matchers/StringEq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@

#include "mimic++/Matcher.hpp"

#include <catch2/catch_template_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/generators/catch_generators_range.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>

#include <array>

namespace matches = mimicpp::matches;
Expand Down
5 changes: 0 additions & 5 deletions test/unit-tests/matchers/StringStartsWith.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@

#include "mimic++/Matcher.hpp"

#include <catch2/catch_template_test_macros.hpp>
#include <catch2/generators/catch_generators.hpp>
#include <catch2/generators/catch_generators_range.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>

#include <array>

namespace matches = mimicpp::matches;
Expand Down

0 comments on commit 6a91271

Please sign in to comment.