CFDP SOURCE handler #157

Merged
muellerr merged 107 commits from cfdp-source-handler into develop 2023-10-19 10:59:55 +02:00
Showing only changes of commit f49e607881 - Show all commits

View File

@ -60,6 +60,12 @@ TEST_CASE("Reserved Message Parser", "[cfdp]") {
CHECK(putRequest.getDestId().getWidth() == entityId.getWidth());
size_t sourceNameSize = 0;
auto& sourceNameLv = putRequest.getSourceName();
sourceNameLv.getString(sourceNameSize);
const char* sourceString = sourceNameLv.getString(sourceNameSize);
CHECK(sourceNameSize == srcFileName.size());
CHECK(std::strncmp(sourceString, srcFileName.c_str(), sourceNameSize) == 0);
size_t destNameSize = 0;
auto& destNameLv = putRequest.getDestName();
const char* destString = destNameLv.getString(destNameSize);
CHECK(destNameSize == destFileName.size());
CHECK(std::strncmp(destString, destFileName.c_str(), destNameSize) == 0);
}