Branch Coverage

lib/Crypt/Password.pm
Criterion Covered Total %
branch 15 30 50.0


line true false branch
166 0 4 unless (exists $flav->{$func})
167 0 0 if (exists $flav->{'base'})
200 1 0 unless ($self->{'crypted'})
222 0 1 if (not $definitely_crypt and $self->_looks_crypted($self->{'input'}))
237 0 22 if (defined $provided) { }
241 1 21 if defined $self->{'salt'}
243 0 21 if ($self->{'crypted'}) { }
256 1 1 if ($alg) { }
1 0 elsif (not $self->{'algorithm'}) { }
258 0 1 if (exists $alg_to_id{lc $alg}) { }
279 0 1 unless defined $self->{'input'}
280 0 1 unless $self->{'algorithm_id'}
281 0 1 unless defined $self->{'salt'}
293 0 0 if $TESTMODE
300 0 1 unless defined $s