Added more unit testing for ReadProperty to increase code coverage. (#1118)
This commit is contained in:
+2
-8
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user