pack_extended_request.c

filter: Statementstmt 100% 10 / 10 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 85.7% 12 / 14 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« pack_modify_dn_request.c ↑ Summary pack_bind_response.c »
1 #include "pack.h"
2 #include "util.h"
3  
4 void
5 1 pack_extended_request_args(SV *dest, SV *oid, SV *value) {
6 1 STRLEN offset = start_constructed(dest,
7 ASN1_APPLICATION|ASN1_CONSTRUCTED,
8 LDAP_OP_EXTENDED_REQUEST);
9 1 pack_raw_utf8(dest, ASN1_CONTEXT_SPECIFIC|ASN1_PRIMITIVE, 0, oid);
10 1 ▶ if (value && SvOK(value))
Branch: 2 branches
BranchTrueFalseTotal
if (value && SvOK(value)) 1 0 1
if (value && SvOK(value)) 1 0 1
11 1 pack_raw_utf8(dest, ASN1_CONTEXT_SPECIFIC|ASN1_PRIMITIVE, 1, value);
12 1 end_constructed(dest, offset);
13 1 }
14  
15 void
16 1 pack_extended_request_ref(SV *dest, HV *hv) {
17 1 pack_extended_request_args(dest,
18 hv_fetchs_def_undef(hv, "oid"),
19 hv_fetchs_def_undef(hv, "value"));
20 1 }
« pack_modify_dn_request.c ↑ Summary pack_bind_response.c »