scan_intermediate_response.c

filter: Statementstmt 0.0% 0 / 19 Branchbran 0.0% 0 / 14 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 0.0% 0 / 33 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« pack_intermediate_response.c ↑ Summary search_filter_to_string.c »
1 #include "scan.h"
2  
3 void
4 0 scan_intermediate_response(const char **src, const char *max, HV *out) {
5 0 ▶ if (*src < max) {
Branch: 1 branch
BranchTrueFalseTotal
if (*src < max) { 0 0 0
6 SV *sv;
7 U8 type;
8 U32 tag;
9 0 scan_tag(src, max, &type, &tag);
10 0 ▶ if (tag == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if (tag == 0) { 0 0 0
11 SV *name;
12 0 ▶ if (type != (ASN1_CONTEXT_SPECIFIC | ASN1_PRIMITIVE))
Branch: 1 branch
BranchTrueFalseTotal
if (type != (ASN1_CONTEXT_SPECIFIC | ASN1_PRIMITIVE)) 0 0 0
13 0 croak("scan_intermediate_response: bad packet data");
14 0 name = newSV(0);
15 0 hv_stores(out, "name", name);
16 0 scan_raw_notag(src, max, name);
17 0 ▶ if (*src == max) return;
Branch: 1 branch
BranchTrueFalseTotal
if (*src == max) return; 0 0 0
18 0 scan_tag(src, max, &type, &tag);
19 }
20 0 ▶ if (tag == 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (tag == 1) { 0 0 0
21 SV *value;
22 0 ▶ if (type != (ASN1_CONTEXT_SPECIFIC | ASN1_PRIMITIVE))
Branch: 1 branch
BranchTrueFalseTotal
if (type != (ASN1_CONTEXT_SPECIFIC | ASN1_PRIMITIVE)) 0 0 0
23 0 croak("scan_intermediate_response: bad packet data");
24 0 value = newSV(0);
25 0 hv_stores(out, "value", value);
26 0 scan_raw_notag(src, max, value);
27 0 ▶ if (*src == max) return;
Branch: 1 branch
BranchTrueFalseTotal
if (*src == max) return; 0 0 0
28 }
29 0 croak("scan_intermediate_response: bad packet data");
30 }
31 }
« pack_intermediate_response.c ↑ Summary search_filter_to_string.c »