Condition Coverage

blib/lib/Crypt/Misc.pm
Criterion Covered Total %
condition 12 40 30.0


and 3 conditions

line !l l&&!r l&&r condition
69 0 1 290 $alphabet =~ /^[a-zA-Z0-9]{58}$/ and $base58 =~ /^[$alphabet]+$/
81 0 25 265 defined $base58 and length $base58 > 0
126 11 0 0 $cipher_name and $iv_hex
11 0 0 $cipher_name and $iv_hex and $ptype
0 0 0 $cipher_name and $iv_hex and $ptype and $ptype eq "4,ENCRYPTED"
182 0 0 1 defined $a and defined $b
184 1 0 10 $i < length $a and $i < length $b
243 0 0 0 $cipher and $mode
250 0 0 0 $klen and $ilen

or 2 conditions

line l !l condition
121 0 11 $headers || ''
142 0 0 $cipher_name ||= "AES-256-CBC"

or 3 conditions

line l !l&&r !l&&!r condition
43 0 0 290 not defined $bytes or length $bytes == 0
65 0 0 291 not defined $base58 or length $base58 == 0
244 0 0 0 $trans{$cipher} || $cipher