Branch Coverage

blib/lib/POE/Component/Server/IRC/Common.pm
Criterion Covered Total %
branch 31 42 73.8


line true false branch
16 0 210 unless defined $plain and length $plain
19 57 153 if $opts{'bcrypt'}
20 51 102 if $opts{'md5'}
21 51 51 if $opts{'apache'}
24 0 51 unless defined crypt('ab', $alg . 'cd')
25 0 51 unless defined crypt('ab', $alg . 'cd')
26 0 51 unless defined crypt('ab', $alg . 'cd')
32 0 753 unless defined $pass and length $pass
33 0 753 unless defined $chk and length $chk
36 101 652 if (index($chk, $apr) == 0) { }
101 551 elsif (index($chk, $md5) == 0) { }
144 407 elsif (index($chk, $bcr) == 0) { }
41 101 0 if apache_md5_crypt($pass, $salt) eq $chk
48 101 0 if unix_md5_crypt($pass, $salt) eq $chk
51 136 8 if _bcrypt($pass, $chk) eq $chk
55 101 314 if $crypt and $crypt eq $chk
56 306 8 if $pass eq $chk
63 57 144 unless (defined $salt)
66 0 57 unless defined crypt('ab', $alg . 'cd')
67 0 57 unless defined crypt('ab', $alg . 'cd')
68 0 57 unless defined crypt('ab', $alg . 'cd')