Skip to content
Snippets Groups Projects
Commit 714bbdee authored by kongr45gpen's avatar kongr45gpen
Browse files

Formatting

parent 75ee24a9
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ public: ...@@ -17,7 +17,7 @@ public:
* Get a message from the list of queued messages to send * Get a message from the list of queued messages to send
* @param number The number of the message, starting from 0 in chronological order * @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); return queuedMessages.at(number);
} }
......
...@@ -14,13 +14,13 @@ void Service::storeMessage(const Message &message) { ...@@ -14,13 +14,13 @@ void Service::storeMessage(const Message &message) {
struct ServiceTestsListener : Catch::TestEventListenerBase { struct ServiceTestsListener : Catch::TestEventListenerBase {
using TestEventListenerBase::TestEventListenerBase; // inherit constructor 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 // 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 // Tear-down after a test case is run
ServiceTests::reset(); ServiceTests::reset();
} }
}; };
CATCH_REGISTER_LISTENER( ServiceTestsListener ) CATCH_REGISTER_LISTENER(ServiceTestsListener)
#define CATCH_CONFIG_MAIN #define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp> #include <catch2/catch.hpp>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment