Branch Coverage

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


line true false branch
47 83 20 if (my $attempts = $self->_cgiapp->authen->login_attempts) { }
19 1 elsif ($options{'COMMENT'}) { }
55 1 102 if ($options{'FOCUS_FORM_ONLOAD'})
58 102 1 if ($options{'REMEMBERUSER_OPTION'})
62 60 42 if $username_value
65 1 102 if ($options{'REGISTER_URL'})
69 1 102 if ($options{'FORGOTPASSWORD_URL'})
73 100 3 if ($options{'INCLUDE_STYLESHEET'})
83 61 42 if ($javascript)
129 9 91 if $$login_form{'LIGHTER_COLOUR'}
130 9 91 if $$login_form{'LIGHT_COLOUR'}
131 9 91 if $$login_form{'DARK_COLOUR'}
132 9 91 if $$login_form{'DARKER_COLOUR'}
133 5 95 if $$login_form{'GREY_COLOUR'}
135 36 364 unless not defined $colour{$_}
136 99 1 if (@undefined_colours)
138 1 98 if ($@ and $$login_form{'BASE_COLOUR'})
141 2 97 if ($@) { }
149 6 2 $colour{'lighter'} =~ /(\d{2})%/ ? :
89 8 !$colour{'lighter'} ? :
154 5 3 $colour{'light'} =~ /(\d{2})%/ ? :
89 8 !$colour{'light'} ? :
159 5 3 $colour{'dark'} =~ /(\d{2})%/ ? :
89 8 !$colour{'dark'} ? :
164 4 4 $colour{'darker'} =~ /(\d{2})%/ ? :
89 8 !$colour{'darker'} ? :
170 92 5 unless ($colour{'grey'})