Branch Coverage

blib/lib/SWISH/Filters/Base.pm
Criterion Covered Total %
branch 15 62 24.1


line true false branch
56 0 0 unless $_[0]{'type'}
75 0 0 unless $_[0]{'priority'}
85 0 0 unless $$self{'mimetypes'}
88 0 0 unless ref $$self{'mimetypes'} eq 'ARRAY'
104 0 0 unless $content_type
107 0 0 if $content_type =~ /$pattern/
122 0 76 if $ENV{'FILTER_DEBUG'}
150 6 0 unless ($path)
157 0 0 unless ($self->can("run_$prog"))
182 1 5 unless (@path_segments)
187 1 0 if (my $libexecdir = get_libexec())
198 0 48 if $^O =~ /Win32/
200 0 48 if (-x $path)
208 0 48 if ($^O =~ /Win32/)
210 0 0 if (-x "$path.$extension")
262 0 8 if (ref $module) { }
271 0 8 if ($req_vers) { }
272 0 0 if $@
275 6 2 unless eval "require $mod"
278 6 2 if ($@)
290 2 0 if $mod->can('export_to_level')
315 0 0 unless @_
318 0 0 unless @_ > 1
321 0 0 $^O =~ /Win32/i || $^O =~ /VMS/i ? :
331 0 0 if $$self{'pid'}
349 0 0 unless defined $pid
351 0 0 if $pid
355 0 0 unless exec @args
393 0 0 unless defined $str
420 0 0 unless my $m = shift()
421 0 0 unless ref $m and ref $m eq 'HASH'