Branch Coverage

blib/lib/Dist/Zilla/Util/SimpleMunge.pm
Criterion Covered Total %
branch 15 38 39.4


line true false branch
137 0 0 if (@rest)
150 0 0 unless ($file and $file->can('content'))
160 0 0 unless (defined $callback and 'CODE' eq ref $callback)
172 0 0 if ($file->can('code'))
197 0 2 if ('bytes' eq $encoding) { }
223 0 2 if ('bytes' eq $encoding) { }
253 0 5 if ('bytes' eq $file->encoding)
443 2 2 if (defined $config->{'lazy'} and 0 == $config->{'lazy'})
454 2 3 if (defined $config->{'lazy'} and 1 == $config->{'lazy'})
480 0 9 if (@rest)
494 0 9 unless ($file and $file->can('content'))
505 0 9 unless (ref $config and 'HASH' eq ref $config)
518 0 9 unless (exists $config->{'via'} and defined $config->{'via'} and 'CODE' eq ref $config->{'via'})
531 0 9 if (exists $config->{'lazy'} and not !defined($config->{'lazy'}) || 0 == $config->{'lazy'} || 1 == $config->{'lazy'})
570 0 9 if (exists $config->{'native'} and defined $config->{'native'})
571 0 0 if ('filemungeapi' eq $config->{'native'})
572 0 0 if ($file->can('munge'))
577 4 5 if ($file->can('code'))
619 0 0 unless munge_file($file, $config)