Branch Coverage

blib/lib/WWW/AUR/Login.pm
Criterion Covered Total %
branch 0 40 0.0


line true false branch
45 0 0 unless @_ >= 2
54 0 0 if $resp->content =~ /$BAD_LOGIN_MSG/
57 0 0 unless ($resp->code == 302)
58 0 0 unless $resp->is_success
64 0 0 unless $self->{'sid'} = _sidcookie($ua)
75 0 0 if $_[1] eq 'AURSID'
86 0 0 unless $pkg
89 0 0 unless my $action = $_PKG_ACTIONS{$act}
101 0 0 unless $resp->is_success
105 0 0 unless $pkgoutput
116 0 0 unless (ref $pkg)
117 0 0 if $pkg =~ /\A\d+\z/
125 0 0 unless eval { do { $pkg->isa('WWW::AUR::Package') } }
136 0 0 if $name = eval { do { $pkg->name } }
149 0 0 unless ($txt =~ /\A$goodmsg/)
188 0 0 unless ($txt =~ /\AThe selected packages have been deleted[.]/)
201 0 0 unless (-f $path)
222 0 0 if $resp->content =~ /$PKG_EXISTS_MSG/
230 0 0 unless defined $com and length $com
240 0 0 unless $resp->is_success and $resp->content =~ /$COMMADD_MSG/