Branch Coverage

blib/lib/CGI/Auth/Basic.pm
Criterion Covered Total %
branch 0 96 0.0


line true false branch
35 0 0 if @args % 2
43 0 0 if ($o{'cgi_object'} eq 'AUTOLOAD_CGI') { }
50 0 0 unless ($o{'ihacloaiwtui'})
51 0 0 if ref $o{'cgi_object'} ne 'CGI'
56 0 0 if ($o{'file'} and -e $o{'file'} and not -d $o{'file'}) { }
65 0 0 unless $password
87 0 0 if ref $code eq 'CODE'
94 0 0 if (!ref($self->{'hidden'}) eq 'ARRAY')
101 0 0 if $_->[0] eq $self->{'cookie_id'}
102 0 0 if $_->[0] eq $self->{'cookie_id'} . '_new'
107 0 0 @hidden_q ? :
147 0 0 unless $self->{'setup_pfile'}
148 0 0 unless ($self->{'cgi'}->param('change_password'))
173 0 0 if $not_ok
183 0 0 unless $PASSWORD->open($self->{'password_file_path'}, '>')
184 0 0 if $self->{'use_flock'}
186 0 0 if $self->{'use_flock'}
195 0 0 unless $PASSWORD->open($self->{'password_file_path'})
208 0 0 if ($self->{'cgi'}->param($self->{'changep_param'}))
209 0 0 unless ($self->{'cgi'}->param('change_password'))
231 0 0 if (ref $self->{'password'} eq 'CODE')
236 0 0 if ($self->{'cgi'}->param($self->{'logoff_param'}))
246 0 0 if ($pass_param = $self->{'cgi'}->param($self->{'cookie_id'})) { }
0 0 elsif ($pass_param = $self->{'cgi'}->cookie($self->{'cookie_id'})) { }
247 0 0 if (not $pass_param =~ /$RE/ and $self->_match_pass($pass_param)) { }
269 0 0 if (not $pass_param =~ /$RE/ and $pass_param eq $self->{'password'}) { }
296 0 0 unless $code
299 0 0 if (not $param =~ /\W/msx and exists $self->{$param})
308 0 0 unless my $key = shift()
315 0 0 if @args % 2
317 0 0 if ($o{'delete_all'}) { }
319 0 0 if $key =~ / \A template_ /msx
325 0 0 if exists $o{$key}
333 0 0 if @args % 2
336 0 0 unless $self->{'_TEMPLATE_TITLE'}{'title_' . $_}
344 0 0 if @args
397 0 0 if @args
462 0 0 $self->{'hidden_q'} ? :
463 0 0 if ($self->{'logged_in'})
489 0 0 @args % 2 ? :
490 0 0 $p{'cookie'} ? :
493 0 0 if ($self->{'hidden_q'}) { }
502 0 0 if $p eq $self->{'logoff_param'} or $p eq $self->{'changep_param'} or $p eq $self->{'cookie_id'} or $p eq $self->{'cookie_id'} . '_new'
506 0 0 if (@qs)
518 0 0 $p{'forward'} ? :
522 0 0 $p{'forward'} ? :
557 0 0 if @args
623 0 0 $exit ? :