Branch Coverage

blib/lib/Crypt/HSXKPasswd/Types.pm
Criterion Covered Total %
branch 28 52 53.8


line true false branch
1084 0 13 unless (defined $var)
1092 1 12 unless ($ref)
1097 0 12 if ($ref eq 'SCALAR') { }
2 10 elsif ($ref eq 'ARRAY' or $ref eq 'HASH') { }
1099 0 0 unless ($val)
1111 0 2 if (length $var_str > $max_length)
1186 0 0 unless (defined $hashref and ref $hashref eq 'HASH')
1193 0 0 unless ($CONFIG_KEY_NAME->check($key))
1214 0 0 unless (defined $hashref and ref $hashref eq 'HASH')
1221 0 0 unless ($CONFIG_KEY_ASSIGNMENT->check({$key, $hashref->{$key}}))
1242 0 222 unless (defined $hashref and ref $hashref eq 'HASH')
1251 2220 1554 unless $_KEYS->{$key}{'required'}
1254 0 1554 unless (defined $hashref->{$key})
1277 0 222 unless (defined $hashref and ref $hashref eq 'HASH')
1285 136 86 if ($hashref->{'separator_character'} eq 'RANDOM')
1286 0 136 unless (defined $hashref->{'symbol_alphabet'} or defined $hashref->{'separator_alphabet'})
1292 136 86 if ($hashref->{'padding_type'} ne 'NONE')
1293 0 136 unless (defined $hashref->{'padding_character'})
1296 136 0 if ($hashref->{'padding_character'} eq 'RANDOM')
1297 0 136 unless (defined $hashref->{'symbol_alphabet'} or defined $hashref->{'padding_alphabet'})
1301 0 136 if ($hashref->{'padding_character'} eq 'SEPARATOR' and $hashref->{'separator_character'} eq 'NONE')
1307 135 87 if ($hashref->{'padding_type'} eq 'FIXED')
1308 0 135 unless (defined $hashref->{'padding_characters_before'} and defined $hashref->{'padding_characters_after'})
1311 0 135 unless ($hashref->{'padding_characters_before'} + $hashref->{'padding_characters_after'} > 0)
1317 1 221 if ($hashref->{'padding_type'} eq 'ADAPTIVE')
1318 0 1 unless (defined $hashref->{'pad_to_length'})