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 = {
"kgk0o5ou19",
"bmyw4jyqlg",
"cm3lxg8nki",
"dpwneegwta",
"oxud1t62hw",
"gckzi29cfr",
"1ti32fjomn",
"p8swxkqpgw",
"lm6gmjzsp0",
"fzd3nje4rb" };
14const std::vector<float>
telemDrivetempsTemps_0 = { 0.479551,0.263537,0.550621,0.894875,0.472594,0.638424,0.975409,0.95207,0.799147,0.143039 };
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]")