2016-04-20 16:57:49 +08:00
|
|
|
#pragma once
|
|
|
|
|
2022-10-31 23:09:45 +08:00
|
|
|
#if defined(__GNUC__) && __GNUC__ == 12
|
2023-09-25 21:05:07 +08:00
|
|
|
#pragma GCC diagnostic push
|
2023-09-25 21:40:05 +08:00
|
|
|
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" // Workaround for GCC 12
|
2022-09-30 19:20:15 +08:00
|
|
|
#endif
|
2023-03-01 19:51:04 +08:00
|
|
|
#include <catch2/catch_all.hpp>
|
2022-10-31 23:09:45 +08:00
|
|
|
#if defined(__GNUC__) && __GNUC__ == 12
|
2023-09-25 21:05:07 +08:00
|
|
|
#pragma GCC diagnostic pop
|
2022-09-30 19:20:15 +08:00
|
|
|
#endif
|
|
|
|
|
2023-09-29 05:20:26 +08:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
2018-03-09 21:26:33 +08:00
|
|
|
#include <chrono>
|
2016-04-20 16:57:49 +08:00
|
|
|
#include <cstdio>
|
2018-03-09 21:26:33 +08:00
|
|
|
#include <exception>
|
2016-04-20 16:57:49 +08:00
|
|
|
#include <fstream>
|
2023-09-29 05:20:26 +08:00
|
|
|
#include <iomanip>
|
2018-08-17 22:17:16 +08:00
|
|
|
#include <iostream>
|
2018-08-25 22:55:31 +08:00
|
|
|
#include <ostream>
|
2019-06-04 21:35:34 +08:00
|
|
|
#include <sstream>
|
2018-03-09 21:26:33 +08:00
|
|
|
#include <string>
|
2023-09-29 05:20:26 +08:00
|
|
|
|
|
|
|
#include "utils.h"
|
2016-04-20 16:57:49 +08:00
|
|
|
|
2018-11-12 00:15:24 +08:00
|
|
|
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
|
2017-10-13 07:04:31 +08:00
|
|
|
|
2018-04-29 06:34:36 +08:00
|
|
|
#include "spdlog/async.h"
|
2022-04-23 11:28:28 +08:00
|
|
|
#include "spdlog/details/fmt_helper.h"
|
2023-09-29 05:20:26 +08:00
|
|
|
#include "spdlog/pattern_formatter.h"
|
2018-07-07 18:22:43 +08:00
|
|
|
#include "spdlog/sinks/basic_file_sink.h"
|
2018-04-29 06:34:36 +08:00
|
|
|
#include "spdlog/sinks/daily_file_sink.h"
|
2023-09-29 05:20:26 +08:00
|
|
|
#include "spdlog/sinks/msvc_sink.h"
|
2018-04-29 06:34:36 +08:00
|
|
|
#include "spdlog/sinks/null_sink.h"
|
|
|
|
#include "spdlog/sinks/ostream_sink.h"
|
2018-04-29 06:36:45 +08:00
|
|
|
#include "spdlog/sinks/rotating_file_sink.h"
|
|
|
|
#include "spdlog/sinks/stdout_color_sinks.h"
|
2023-09-29 05:20:26 +08:00
|
|
|
#include "spdlog/spdlog.h"
|