2#include "../../../../tests/catch2/catch.hpp"
3#include "../generated/logCodes.hpp"
4#include "../types/observer.hpp"
5#include "../types/generated/observer_generated.h"
6#include "../types/flatbuffer_log.hpp"
45 CObserver_0(std::string fullName_, std::string pfoa_, std::string email_, std::string institution_) {
56 void* buffPtr = o.builder.GetBufferPointer();
87 flatlogs::logHeader::createLog<MagAOX::logger::observer>(logBuffer
97 GIVEN(
"a observer log code")
99 WHEN(
"random values for fields")
std::string m_saveOInstitution
std::string m_institution
std::string m_saveOFullName
CObserver_0(std::string fullName_, std::string pfoa_, std::string email_, std::string institution_)
bool verify(const typename MagAOX::logger::observer::messageT &msg)
int8_t logPrioT
The type of the log priority code.
std::shared_ptr< char > bufferPtrT
The log entry buffer smart pointer.
const MagAOX::logger::Observer_fb * GetObserver_fb(const void *buf)
static constexpr logPrioT LOG_DEFAULT
Used to denote "use the default level for this log type".
const std::string observerPfoa_0
SCENARIO("Create observer 0", "[a log item]")
const std::string observerFullName_0
const std::string observerInstitution_0
const std::string observerEmail_0
static flatlogs::msgLenT length(const fbMessage &msg)
Get the length of the message.
The type of the input message.
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
A fixed-width timespec structure.