Branch Coverage

blib/lib/MIME/Body.pm
Criterion Covered Total %
branch 26 34 76.4


line true false branch
216 0 10 unless my $fh = 'IO::File'->new(\$str, '>:')
237 36 150 if @_ > 1
254 7 73 if @_ > 1
312 115 221 if @_
431 0 150 if ($mode ne 'r' and $mode ne 'w')
437 35 115 if $self->binmode
449 3 0 if (defined $self->path)
450 0 3 unless unlink $self->path
498 0 2 if ref $data and ref $data eq 'ARRAY'
499 0 2 defined $data ? :
515 30 58 if $mode eq 'w'
517 30 58 if ($mode eq 'w') { }
58 0 elsif ($mode eq 'r') { }
573 28 20 if (not defined $data) { }
11 9 elsif (not ref $data) { }
1 8 elsif (ref $data eq 'SCALAR') { }
8 0 elsif (ref $data eq 'ARRAY') { }