From 9687a335ce66d11e3239e0230eb57452a878f662 Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Wed, 1 Feb 2023 21:29:33 +0100 Subject: [PATCH] Added testing with doctest --- src/gz-util.hpp | 18 ++++++++++++++++++ src/testing.cpp | 11 +++++++++++ 2 files changed, 29 insertions(+) create mode 100644 src/gz-util.hpp create mode 100644 src/testing.cpp diff --git a/src/gz-util.hpp b/src/gz-util.hpp new file mode 100644 index 0000000..9c7d52f --- /dev/null +++ b/src/gz-util.hpp @@ -0,0 +1,18 @@ +#pragma once + +/** + * @file + * @brief Includes all headers from this library + * @details + * Not recommended - this is mainly used for testing the library. + */ + +#include "settings_manager.hpp" +#include "log.hpp" +#include "string/conversion.hpp" +#include "string/utility.hpp" + +#include "regex.hpp" +#include "concepts.hpp" +#include "container/queue.hpp" +#include "container/ringbuffer.hpp" diff --git a/src/testing.cpp b/src/testing.cpp new file mode 100644 index 0000000..416ca45 --- /dev/null +++ b/src/testing.cpp @@ -0,0 +1,11 @@ +#ifdef GZ_UTIL_TESTING +#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN +#include +#include "gz-util.hpp" +#endif + + +/** + * @file + * @brief Includes all headers and implements `main` for testing + */