Branch Coverage

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


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