2#include "../../../../tests/catch2/catch.hpp"
3#include "../generated/logCodes.hpp"
4#include "../types/telem_drivetemps.hpp"
5#include "../types/generated/telem_drivetemps_generated.h"
6#include "../types/flatbuffer_log.hpp"
13const std::vector<std::string>
telemDrivetempsNames_0 = {
"7rmzrleckt",
"l4ze6276op",
"jwe550ma6l",
"j9ryovjzyg",
"llu8c05oxt",
"eweb4wa0yy",
"xfxdx9djvo",
"9cdbsqo0x7",
"hwab6fv4yp",
"da0zzy61x0" };
14const std::vector<float>
telemDrivetempsTemps_0 = { 0.707428,0.574908,0.395981,0.288376,0.073606,0.040117,0.76293,0.707969,0.045961,0.885381 };
48 void* buffPtr = td.builder.GetBufferPointer();
93 flatlogs::logHeader::createLog<MagAOX::logger::telem_drivetemps>(logBuffer
101SCENARIO(
"Create telem_drivetemps 0",
"[a log item]")
103 GIVEN(
"a telem_drivetemps log code")
105 WHEN(
"random values for fields")
std::vector< float > m_temps
bool verify(const typename MagAOX::logger::telem_drivetemps::messageT &msg)
std::vector< std::string > m_names
std::vector< float > m_saveTdTemps
CTelemDrivetemps_0(std::vector< std::string > names_, std::vector< float > temps_)
std::vector< std::string > m_saveTdNames
int8_t logPrioT
The type of the log priority code.
std::shared_ptr< char > bufferPtrT
The log entry buffer smart pointer.
const MagAOX::logger::Telem_drivetemps_fb * GetTelem_drivetemps_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.
The type of the input message.
static bool verify(flatlogs::bufferPtrT &logBuff, flatlogs::msgLenT len)
A fixed-width timespec structure.
const std::vector< std::string > telemDrivetempsNames_0
const std::vector< float > telemDrivetempsTemps_0
SCENARIO("Create telem_drivetemps 0", "[a log item]")