2#include "../../../../tests/catch2/catch.hpp"
3#include "../generated/logCodes.hpp"
4#include "../types/user_log.hpp"
5#include "../types/generated/user_log_generated.h"
6#include "../types/flatbuffer_log.hpp"
48 void* buffPtr = ul.builder.GetBufferPointer();
77 flatlogs::logHeader::createLog<MagAOX::logger::user_log>(logBuffer
87 GIVEN(
"a user_log log code")
89 WHEN(
"random values for fields")
std::string m_saveUlMessage
std::string m_saveUlEmail
bool verify(const typename MagAOX::logger::user_log::messageT &msg)
CUserLog_0(std::string email_, std::string message_)
int8_t logPrioT
The type of the log priority code.
std::shared_ptr< char > bufferPtrT
The log entry buffer smart pointer.
const MagAOX::logger::User_log_fb * GetUser_log_fb(const void *buf)
static constexpr logPrioT LOG_DEFAULT
Used to denote "use the default level for this log type".
static flatlogs::msgLenT length(const fbMessage &msg)
Get the length of the message.
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
A fixed-width timespec structure.
const std::string userLogEmail_0
SCENARIO("Create user_log 0", "[a log item]")
const std::string userLogMessage_0