diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-09 11:22:35 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-09 11:22:35 +0100 |
commit | b845376e270c060730d4f8b9b0946a63908871da (patch) | |
tree | da4f0f33b90a4f338cd0f1c1eeaf8fd5dc8c3970 /src/test | |
parent | 3822e47f205f0fd949c64b2f4ab94aa50b1131fb (diff) |
feature_config
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/main.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/test/main.cpp b/src/test/main.cpp index aece72d..0e1bc75 100644 --- a/src/test/main.cpp +++ b/src/test/main.cpp @@ -1,8 +1,5 @@ #include <gtest/gtest.h> -#define protected public -#define private public - #include <crepe/api/Config.h> using namespace crepe; @@ -11,12 +8,14 @@ using namespace testing; class GlobalConfigReset : public EmptyTestEventListener { public: Config & cfg = Config::get_instance(); - Config cfg_default = Config(); // This function is called before each test void OnTestStart(const TestInfo &) override { - cfg = cfg_default; - cfg.log.level = Log::Level::WARNING; + cfg = { + .log = { + .level = Log::Level::WARNING, + }, + }; } }; |