pack_extended_response.c

filter: Statementstmt 100% 13 / 13 Branchbran 50.0% 4 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 80.9% 17 / 21 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« scan_compare_request.c ↑ Summary pack_modify_dn_request.c »
1 #include "pack.h"
2 #include "util.h"
3  
4 void
5 1 pack_extended_response_args(SV *dest, I32 result,
6 SV *matched_dn, SV *message, SV *referrals,
7 SV *name, SV *value) {
8 1 STRLEN offset = start_constructed(dest, ASN1_APPLICATION|ASN1_CONSTRUCTED, LDAP_OP_EXTENDED_RESPONSE);
9 1 pack_result_response_nowrap(dest, result, matched_dn, message, referrals);
10 1 ▶ if (name && SvOK(name))
Branch: 2 branches
BranchTrueFalseTotal
if (name && SvOK(name)) 1 0 1
if (name && SvOK(name)) 1 0 1
11 1 pack_raw_utf8(dest, ASN1_CONTEXT_SPECIFIC|ASN1_PRIMITIVE, 10, name);
12 1 ▶ if (value && SvOK(value))
Branch: 2 branches
BranchTrueFalseTotal
if (value && SvOK(value)) 1 0 1
if (value && SvOK(value)) 1 0 1
13 1 pack_raw_utf8(dest, ASN1_CONTEXT_SPECIFIC|ASN1_PRIMITIVE, 11, value);
14 1 end_constructed(dest, offset);
15 1 }
16  
17 void
18 1 pack_extended_response_ref(SV *dest, HV *hv) {
19 2 pack_extended_response_args(dest,
20 1 SvIV(hv_fetchs_def_undef(hv, "result")),
21 hv_fetchs_def_null(hv, "matched_dn"),
22 hv_fetchs_def_null(hv, "message"),
23 hv_fetchs_def_null(hv, "referrals"),
24 hv_fetchs_def_null(hv, "name"),
25 hv_fetchs_def_null(hv, "value"));
26 1 }
« scan_compare_request.c ↑ Summary pack_modify_dn_request.c »