From 714bbdeee0fc5a6a3de7bd92dc0b4adcad304fa6 Mon Sep 17 00:00:00 2001 From: kongr45gpen <electrovesta@gmail.com> Date: Sun, 18 Nov 2018 15:50:38 +0200 Subject: [PATCH] Formatting --- tests/Services/ServiceTests.hpp | 2 +- tests/TestPlatform.cpp | 6 +++--- tests/tests.cpp | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/Services/ServiceTests.hpp b/tests/Services/ServiceTests.hpp index 93c3740c..f84e2dc6 100644 --- a/tests/Services/ServiceTests.hpp +++ b/tests/Services/ServiceTests.hpp @@ -17,7 +17,7 @@ public: * Get a message from the list of queued messages to send * @param number The number of the message, starting from 0 in chronological order */ - static Message& get(unsigned long number) { + static Message &get(unsigned long number) { return queuedMessages.at(number); } diff --git a/tests/TestPlatform.cpp b/tests/TestPlatform.cpp index 08021c0b..5282535c 100644 --- a/tests/TestPlatform.cpp +++ b/tests/TestPlatform.cpp @@ -14,13 +14,13 @@ void Service::storeMessage(const Message &message) { struct ServiceTestsListener : Catch::TestEventListenerBase { using TestEventListenerBase::TestEventListenerBase; // inherit constructor - void testCaseStarting( Catch::TestCaseInfo const& testInfo ) override { + void testCaseStarting(Catch::TestCaseInfo const &testInfo) override { // Perform some setup before a test case is run } - void testCaseEnded( Catch::TestCaseStats const& testCaseStats ) override { + void testCaseEnded(Catch::TestCaseStats const &testCaseStats) override { // Tear-down after a test case is run ServiceTests::reset(); } }; -CATCH_REGISTER_LISTENER( ServiceTestsListener ) +CATCH_REGISTER_LISTENER(ServiceTestsListener) diff --git a/tests/tests.cpp b/tests/tests.cpp index 4ed06df1..f481b16f 100644 --- a/tests/tests.cpp +++ b/tests/tests.cpp @@ -1,2 +1,3 @@ #define CATCH_CONFIG_MAIN + #include <catch2/catch.hpp> -- GitLab