Condition Coverage

blib/lib/Crypt/ASN1.pm
Criterion Covered Total %
condition 53 70 75.7


and 3 conditions

line !l l&&!r l&&r condition
114 0 0 3 $cons and ref $val eq "ARRAY"
156 4 0 3 $type eq "BIT_STRING" and defined $node->{'bits'}
166 0 0 7 defined $val and length $val
308 0 0 30 $arc[0] >= 0 and $arc[0] <= 2
310 18 12 0 $arc[0] < 2 and $arc[1] > 39
316 82 12 18 $i == 1 && $arc[0] == 2
388 4 10 0 $fmt eq "" and $val =~ /^-?\d+$/
407 8 0 1 defined $fs and length $fs
416 0 0 1 defined $fs and $fs > 0

or 2 conditions

line l !l condition
364 2 0 $Config::Config{'longsize'} || 0
373 2 0 $Config::Config{'longsize'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
102 16 2 40 $type eq "SEQUENCE" or $type eq "SET"
146 3 1 13 $type eq "UTF8_STRING" or $type eq "PRINTABLE_STRING"
4 1 12 $type eq "UTF8_STRING" or $type eq "PRINTABLE_STRING" or $type eq "IA5_STRING"
2 1 11 $type eq "UTF8_STRING" or $type eq "PRINTABLE_STRING" or $type eq "IA5_STRING" or $type eq "TELETEX_STRING"
151 3 1 7 $type eq "UTCTIME" or $type eq "GENERALIZEDTIME"
154 4 3 0 $type eq "OCTET_STRING" or $type eq "BIT_STRING"
192 55 8 158 $type eq "SEQUENCE" or $type eq "SET"
246 2 2 39 $type eq "IA5_STRING" or $type eq "PRINTABLE_STRING"
4 1 38 $type eq "IA5_STRING" or $type eq "PRINTABLE_STRING" or $type eq "TELETEX_STRING"
388 5 0 14 $fmt eq "epoch" or $fmt eq "" and $val =~ /^-?\d+$/
392 0 1 4 $year < 1950 or $year > 2049
401 4 6 4 $fmt eq "rfc3339" or $val =~ /^\d{4}-/
409 1 1 6 $YYYY < 1950 or $YYYY > 2049