Branch Coverage

blib/lib/MojoMojo/Formatter/File.pm
Criterion Covered Total %
branch 24 30 80.0


line true false branch
100 4 731 if ($line =~ /\{\{\s*file\s*(\w+)\s*(.*)}}.*/) { }
104 0 4 if $plugin eq 'Image'
111 1 3 if ($error = checkplugin($plugin, $file))
114 2 2 if (not $error and $error = $self->checkfile($file, $c))
118 1 3 unless ($error)
125 731 0 unless ($is_image)
147 2 5 if ($plugin->can('can_format') and $plugin->can_format($extension))
169 0 3 if ($error = checkplugin($pluginname))
194 6 1 if $plugin->can('can_format')
207 0 6 unless $file
210 1 5 if $file =~ /\.\./
216 5 0 ref $confwl eq 'ARRAY' ? :
228 2 3 unless (map(($dir =~ /^$_/), @wl))
233 0 3 unless -d $dir
236 1 2 unless -r $file