2#include "../../../../tests/catch2/catch.hpp"
3#include "../generated/logCodes.hpp"
4#include "../types/pico_channel.hpp"
5#include "../types/generated/pico_channel_generated.h"
6#include "../types/flatbuffer_log.hpp"
48 void* buffPtr = pc.builder.GetBufferPointer();
77 flatlogs::logHeader::createLog<MagAOX::logger::pico_channel>(logBuffer
85SCENARIO(
"Create pico_channel 0",
"[a log item]")
87 GIVEN(
"a pico_channel log code")
89 WHEN(
"random values for fields")
CPicoChannel_0(std::string name_, uint8_t channel_)
bool verify(const typename MagAOX::logger::pico_channel::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::Pico_channel_fb * GetPico_channel_fb(const void *buf)
static constexpr logPrioT LOG_DEFAULT
Used to denote "use the default level for this log type".
const uint8_t picoChannelChannel_0
SCENARIO("Create pico_channel 0", "[a log item]")
const std::string picoChannelName_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.