test no crc generation
This commit is contained in:
parent
cb118176a0
commit
1b5fa2a8fa
@ -146,4 +146,13 @@ TEST_CASE("PUS TM Creator", "[pus-tm-creator]") {
|
||||
SerializeIF::BUFFER_TOO_SHORT);
|
||||
}
|
||||
}
|
||||
|
||||
SECTION("No CRC Generation") {
|
||||
creator.disableCrcCalculation();
|
||||
REQUIRE(not creator.crcCalculationEnabled());
|
||||
REQUIRE(creator.serialize(dataPtr, serLen, buf.size()) == HasReturnvaluesIF::RETURN_OK);
|
||||
REQUIRE(serLen == 22);
|
||||
REQUIRE(buf[20] == 0x00);
|
||||
REQUIRE(buf[21] == 0x00);
|
||||
}
|
||||
}
|
@ -38,9 +38,10 @@ TEST_CASE("PUS TM Reader", "[pus-tm-reader]") {
|
||||
readerPtr->setTimeReader(&timeStamperAndReader);
|
||||
deleteReader = true;
|
||||
}
|
||||
REQUIRE(readerPtr);
|
||||
REQUIRE(not readerPtr->isNull());
|
||||
REQUIRE(not *readerPtr);
|
||||
REQUIRE(readerPtr->isNull());
|
||||
REQUIRE(readerPtr->parseDataWithCrcCheck() == HasReturnvaluesIF::RETURN_OK);
|
||||
REQUIRE(not readerPtr->isNull());
|
||||
REQUIRE(readerPtr->getService() == 17);
|
||||
REQUIRE(readerPtr->getSubService() == 2);
|
||||
REQUIRE(readerPtr->getApid() == 0xef);
|
||||
|
Loading…
Reference in New Issue
Block a user