scan_extended_request.c

filter: Statementstmt 80.0% 12 / 15 Branchbran 50.0% 6 / 12 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 66.6% 18 / 27 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« pack_modify_request.c ↑ Summary scan_numeric.c »
1 #include "scan.h"
2  
3 void
4 2 scan_extended_request(const char **src, const char *max, HV *out) {
5 U8 type;
6 U32 tag;
7 2 SV *sv = newSV(0);
8 2 hv_stores(out, "oid", sv);
9 2 scan_raw(src, max, &type, &tag, sv);
10 2 ▶ if (type != (ASN1_CONTEXT_SPECIFIC | ASN1_PRIMITIVE) || tag != 0)
Branch: 2 branches
BranchTrueFalseTotal
if (type != (ASN1_CONTEXT_SPECIFIC | ASN1_PRIMITIVE) || tag != 0) 2 0 2
if (type != (ASN1_CONTEXT_SPECIFIC | ASN1_PRIMITIVE) || tag != 0) 0 2 2
11 0 croak("scan_extended_request: bad value");
12 2 ▶ if (!sv_utf8_decode(sv))
Branch: 1 branch
BranchTrueFalseTotal
if (!sv_utf8_decode(sv)) 0 2 2
13 0 croak("scan_string_utf8: invalid UTF8 data received");
14  
15 2 ▶ if (*src < max) {
Branch: 1 branch
BranchTrueFalseTotal
if (*src < max) { 2 0 2
16 2 sv = newSV(0);
17 2 hv_stores(out, "value", sv);
18 2 scan_raw(src, max, &type, &tag, sv);
19 2 ▶ if (type != (ASN1_CONTEXT_SPECIFIC | ASN1_PRIMITIVE) || tag != 1)
Branch: 2 branches
BranchTrueFalseTotal
if (type != (ASN1_CONTEXT_SPECIFIC | ASN1_PRIMITIVE) || tag != 1) 2 0 2
if (type != (ASN1_CONTEXT_SPECIFIC | ASN1_PRIMITIVE) || tag != 1) 0 2 2
20 0 croak("scan_extended_request: bad value");
21 }
22 2 }
« pack_modify_request.c ↑ Summary scan_numeric.c »