CFDP SOURCE handler #157
@ -60,6 +60,12 @@ TEST_CASE("Reserved Message Parser", "[cfdp]") {
|
|||||||
CHECK(putRequest.getDestId().getWidth() == entityId.getWidth());
|
CHECK(putRequest.getDestId().getWidth() == entityId.getWidth());
|
||||||
size_t sourceNameSize = 0;
|
size_t sourceNameSize = 0;
|
||||||
auto& sourceNameLv = putRequest.getSourceName();
|
auto& sourceNameLv = putRequest.getSourceName();
|
||||||
sourceNameLv.getString(sourceNameSize);
|
const char* sourceString = sourceNameLv.getString(sourceNameSize);
|
||||||
CHECK(sourceNameSize == srcFileName.size());
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user