start TM reader unittests

This commit is contained in:
Robin Müller 2022-07-22 17:11:55 +02:00
parent cecaec6007
commit 2dfbce6174
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -1,3 +1,18 @@
#include <catch2/catch_test_macros.hpp>
TEST_CASE("PUS TM Reader", "[pus-tm-reader]") {}
#include "fsfw/tmtcpacket/pus/tm/PusTmCreator.h"
#include "mocks/CdsShortTimestamperMock.h"
TEST_CASE("PUS TM Reader", "[pus-tm-reader]") {
auto packetId = PacketId(ccsds::PacketType::TC, true, 0xef);
auto spParams =
SpacePacketParams(packetId, PacketSeqCtrl(ccsds::SequenceFlags::UNSEGMENTED, 22), 0x00);
auto timeStamper = CdsShortTimestamperMock();
auto pusTmParams = PusTmParams(17, 2, &timeStamper);
timeStamper.valueToStamp = {1, 2, 3, 4, 5, 6, 7};
PusTmCreator creator(spParams, pusTmParams);
SECTION("State") {
}
}