Added more unit testing for ReadProperty to increase code coverage. (#1118)

This commit is contained in:
Steve Karg
2025-10-15 10:24:08 -05:00
committed by GitHub
parent 6713f750c3
commit d4d928a915
2 changed files with 111 additions and 11 deletions
+2 -8
View File
@@ -352,13 +352,7 @@ int rp_ack_encode_apdu_init(
*/
int rp_ack_encode_apdu_object_property_end(uint8_t *apdu)
{
int apdu_len = 0; /* total length of the apdu, return value */
if (apdu) {
apdu_len = encode_closing_tag(&apdu[0], 3);
}
return apdu_len;
return encode_closing_tag(apdu, 3);
}
/**
@@ -415,7 +409,7 @@ int rp_ack_encode_apdu(
if (apdu) {
apdu += len;
}
len = encode_closing_tag(apdu, 3);
len = rp_ack_encode_apdu_object_property_end(apdu);
apdu_len += len;
}