Branch Coverage

blib/lib/CGI/Application/Plugin/Authentication/Display/Classic.pm
Criterion Covered Total %
branch 54 54 100.0


line true false branch
47 44 31 if (my $attempts = $self->_cgiapp->authen->login_attempts) { }
30 1 elsif ($options{'COMMENT'}) { }
55 1 74 if ($options{'FOCUS_FORM_ONLOAD'})
58 74 1 if ($options{'REMEMBERUSER_OPTION'})
62 43 31 if $username_value
65 1 74 if ($options{'REGISTER_URL'})
69 1 74 if ($options{'FORGOTPASSWORD_URL'})
73 72 3 if ($options{'INCLUDE_STYLESHEET'})
83 44 31 if ($javascript)
129 9 63 if $login_form->{'LIGHTER_COLOUR'}
130 9 63 if $login_form->{'LIGHT_COLOUR'}
131 9 63 if $login_form->{'DARK_COLOUR'}
132 9 63 if $login_form->{'DARKER_COLOUR'}
133 5 67 if $login_form->{'GREY_COLOUR'}
135 36 252 unless not defined $colour{$_}
136 71 1 if (@undefined_colours)
138 1 1 if ($@ and $login_form->{'BASE_COLOUR'})
141 2 69 if ($@) { }
153 6 2 $colour{'lighter'} =~ /(\d{2})%/ ? :
61 8 !$colour{'lighter'} ? :
158 5 3 $colour{'light'} =~ /(\d{2})%/ ? :
61 8 !$colour{'light'} ? :
163 5 3 $colour{'dark'} =~ /(\d{2})%/ ? :
61 8 !$colour{'dark'} ? :
168 4 4 $colour{'darker'} =~ /(\d{2})%/ ? :
61 8 !$colour{'darker'} ? :
170 64 5 unless ($colour{'grey'})