Branch Coverage

blib/lib/Text/Xslate/Runner.pm
Criterion Covered Total %
branch 38 68 55.8


line true false branch
217 2 36 unless $attr->does('Text::Xslate::Runner::Getopt')
222 4 32 if ($isa->is_a_type_of('Bool')) { }
2 30 elsif ($isa->is_a_type_of('Int')) { }
0 30 elsif ($isa->is_a_type_of('Num')) { }
2 28 elsif ($isa->is_a_type_of('ArrayRef')) { }
6 22 elsif ($isa->is_a_type_of('HashRef')) { }
251 0 5 unless $getopt->getoptions(\%opts, $class->getopt_spec)
267 20 58 if $self->$method
269 1 12 if ($self->has_module)
278 13 0 if (my $ie = $self->input_encoding)
282 0 13 if $self->has_debug
287 1 12 if ($self->help) { }
1 11 elsif ($self->version) { }
299 7 4 if ($self->has_eval)
301 6 1 if ($self->has_define)
313 0 4 if (-d $target) { }
315 0 0 unless $xslate->{'path'}
320 0 4 unless $xslate->{'path'}
329 0 0 unless opendir my $fh, $dir
332 0 0 if $e =~ /^\.+$/
334 0 0 if (-d $target) { }
345 0 4 if (my $ignore = $self->ignore)
346 0 0 if ($file =~ /$ignore/)
357 4 0 if (my $base = $self->{'__process_base'})
365 0 4 if (defined $dest or exists $suffix_map->{$suffix})
367 0 0 if (my $replace = $suffix_map->{$suffix})
372 0 0 unless (-d $dir)
374 0 0 unless (File::Path::mkpath($dir))
383 0 4 if (defined $outfile) { }
385 0 0 unless open $fh, '>', $outfile
390 0 0 unless close $fh
410 1 18 unless $attr->does('Text::Xslate::Runner::Getopt')
412 14 20 length $_ == 1 ? :
439 3 1 if ($oe ne 'UTF-8') { }