2#include "../../../../tests/catch2/catch.hpp"
3#include "../generated/logCodes.hpp"
4#include "../types/git_state.hpp"
5#include "../types/generated/git_state_generated.h"
6#include "../types/flatbuffer_log.hpp"
42 CGitState_0(std::string repoName_, std::string sha1_,
bool modified_) {
52 void* buffPtr = gs.builder.GetBufferPointer();
82 flatlogs::logHeader::createLog<MagAOX::logger::git_state>(logBuffer
92 GIVEN(
"a git_state log code")
94 WHEN(
"random values for fields")
CGitState_0(std::string repoName_, std::string sha1_, bool modified_)
bool verify(const typename MagAOX::logger::git_state::messageT &msg)
std::string m_saveGsRepoName
const std::string gitStateSha1_0
const std::string gitStateRepoName_0
const bool gitStateModified_0
SCENARIO("Create git_state 0", "[a log item]")
int8_t logPrioT
The type of the log priority code.
std::shared_ptr< char > bufferPtrT
The log entry buffer smart pointer.
const MagAOX::logger::Git_state_fb * GetGit_state_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.