Branch Coverage

blib/lib/Apache/Tika/Server.pm
Criterion Covered Total %
branch 0 42 0.0


line true false branch
108 0 0 unless defined(my $pid = fork)
109 0 0 if ($pid)
114 0 0 unless chdir "/"
115 0 0 unless setsid() != -1
116 0 0 unless open STDERR, ">&STDOUT"
117 0 0 unless open STDIN, "< /dev/null"
118 0 0 unless open STDOUT, "> /dev/null"
125 0 0 if ($^O =~ /mswin/i) { }
135 0 0 if (not $self->pid)
138 0 0 unless my $pid = $self->spawn_child($self->cmdline)
178 0 0 if (not $options{'content'} and $options{'filename'})
181 0 0 unless open my $fh, "<", $options{'filename'}
188 0 0 if ('test' eq $options{'type'}) { }
203 0 0 if ('all' eq $options{'type'} or 'text' eq $options{'type'} or 'meta' eq $options{'type'}) { }
206 0 0 unless ($code =~ /^2..$/)
213 0 0 if ($c =~ m[(.*)]s or $c =~ m[]) { }
216 0 0 if ($item->{'Content-Type'} and $item->{'Content-Type'} =~ m[^text/plain\b])
229 0 0 unless (defined $info->{'meta'}{'meta:language'})
237 0 0 unless ($code =~ /^2..$/)
240 0 0 if (ref $res) { }
257 0 0 if $_[0] and $_[0]->pid