1
0
forked from fsfw/fsfw

added catch framework for basic testing

This commit is contained in:
2020-04-14 16:19:13 +02:00
parent c5e5de1530
commit af27a2441a
10 changed files with 18401 additions and 3 deletions

View File

@ -12,7 +12,8 @@
#include <framework/serialize/EndianSwapper.h>
/**
* This template specialization will be chosen for fundamental types.
* This template specialization will be chosen for fundamental types,
* based on partial template specialization
* @tparam T
* @tparam
*/
@ -30,6 +31,9 @@ public:
*/
static ReturnValue_t serialize(const T* object, uint8_t** buffer,
size_t* size, const size_t max_size, bool bigEndian) {
// function eventuelly serializes structs here.
// does this work on every architecture?
//static_assert(std::is_fundamental<T>::value);
size_t ignoredSize = 0;
if (size == nullptr) {
size = &ignoredSize;
@ -85,7 +89,7 @@ public:
/**
* This template specialization will be chosen for class derived from
* SerializeIF.
* SerializeIF, based on partial template specialization.
* @tparam T
* @tparam
*/