Branch Coverage

blib/lib/Archive/Builder/File.pm
Criterion Covered Total %
branch 25 36 69.4


line true false branch
28 37 12 'Archive::Builder'->_check('relative path', $_[0]) ? :
32 27 10 'Archive::Builder'->_check('generator', $_[0]) ? :
37 16 11 @_ ? :
47 0 1 $_[0]{'arguments'} ? :
52 0 13 unless my $filename = shift()
55 0 13 unless ('File::Flat'->canWrite($filename))
60 0 13 unless my $contents = $self->contents
63 0 13 unless 'File::Flat'->write($filename, $contents)
67 0 13 if ($$self{'executable'})
78 0 4 unless my $contents = $self->contents
91 0 1 unless my $Section = $self->Section
114 22 34 unless (exists $$self{'contents'})
116 0 22 unless (defined $contents)
129 11 11 $$self{'generator'} =~ /::/ ? :
133 0 22 unless ('Class::Autouse'->load($module))
141 16 6 $$self{'arguments'} ? :
142 0 22 unless _SCALAR0 $result
145 21 1 if (index($$result, "\000") == -1)