Condition Coverage

lib/Mail/Make/Body/File.pm
Criterion Covered Total %
condition 9 21 42.8


and 3 conditions

line !l l&&!r l&&r condition
36 2 0 43 $path->exists and $path->can_read
94 1 0 0 $path->exists and $path->can_read
108 0 0 0 defined $path and -e $path

or 2 conditions

line l !l condition
33 45 0 shift @_ || (return $self->error('Mail::Make::Body::File->new requires a file path'))
50 14 0 $self->open || (return $self->pass_error)
70 1 0 $self->{'_path'} || (return $self->error('No file path has been set yet.'))
80 26 0 $path->open('<') || (return $self->error("Cannot open file '${path}' for reading: ", $path->error))
91 1 0 shift @_ || (return $self->error('No file was provided.'))
93 1 0 $self->new_file($path) || (return $self->pass_error)