2#include "../../../../tests/catch2/catch.hpp"
3#include "../generated/logCodes.hpp"
4#include "../types/config_log.hpp"
5#include "../types/generated/config_log_generated.h"
6#include "../types/flatbuffer_log.hpp"
45 CConfigLog_0(std::string name_,
int code_, std::string value_, std::string source_) {
56 void* buffPtr = cl.builder.GetBufferPointer();
87 flatlogs::logHeader::createLog<MagAOX::logger::config_log>(logBuffer
95SCENARIO(
"Create config_log 0",
"[a log item]")
97 GIVEN(
"a config_log log code")
99 WHEN(
"random values for fields")
bool verify(const typename MagAOX::logger::config_log::messageT &msg)
std::string m_saveClSource
CConfigLog_0(std::string name_, int code_, std::string value_, std::string source_)
std::string m_saveClValue
const std::string configLogSource_0
const int configLogCode_0
const std::string configLogName_0
SCENARIO("Create config_log 0", "[a log item]")
const std::string configLogValue_0
int8_t logPrioT
The type of the log priority code.
std::shared_ptr< char > bufferPtrT
The log entry buffer smart pointer.
const MagAOX::logger::Config_log_fb * GetConfig_log_fb(const void *buf)
static constexpr logPrioT LOG_DEFAULT
Used to denote "use the default level for this log type".
The type of the input message.
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
static flatlogs::msgLenT length(const fbMessage &msg)
Get the length of the message.
A fixed-width timespec structure.