2#include "../../../../tests/catch2/catch.hpp"
3#include "../generated/logCodes.hpp"
4#include "../types/outlet_channel_state.hpp"
5#include "../types/generated/outlet_channel_state_generated.h"
6#include "../types/flatbuffer_log.hpp"
48 void* buffPtr = ocs.builder.GetBufferPointer();
77 flatlogs::logHeader::createLog<MagAOX::logger::outlet_channel_state>(logBuffer
85SCENARIO(
"Create outlet_channel_state 0",
"[a log item]")
87 GIVEN(
"a outlet_channel_state log code")
89 WHEN(
"random values for fields")
std::string m_saveOcsChannel
bool verify(const typename MagAOX::logger::outlet_channel_state::messageT &msg)
COutletChannelState_0(std::string channel_, uint8_t state_)
int8_t logPrioT
The type of the log priority code.
std::shared_ptr< char > bufferPtrT
The log entry buffer smart pointer.
const MagAOX::logger::Outlet_channel_state_fb * GetOutlet_channel_state_fb(const void *buf)
static constexpr logPrioT LOG_DEFAULT
Used to denote "use the default level for this log type".
const uint8_t outletChannelStateState_0
SCENARIO("Create outlet_channel_state 0", "[a log item]")
const std::string outletChannelStateChannel_0
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.