Branch Coverage

blib/lib/App/DocKnot/Generate.pm
Criterion Covered Total %
branch 36 44 81.8


line true false branch
55 0 42 if ($space <= 0) { }
96 24 0 if (rindex($text, "\n") == -1) { }
101 17 7 if ($last_length + length($holder) < $self->{'width'}) { }
194 10 351 if (%urls)
329 102 0 unless (defined $path)
412 167 1994 if (length $indent > 4)
417 219 1775 if ($paragraph =~ / \A \s* (?: \\ | \[\d+\] ) /msux)
423 80 1695 if ($paragraph =~ s/ \A (\s*) [*] (\s+) /$1 $2/msux)
432 13 1682 if ($paragraph =~ / \A \s* > \s /msux)
438 85 1597 if ($paragraph =~ / \A [^\n]{1,40} \n [^\n]{1,40} \n /msux)
443 105 1492 unless ($paragraph =~ / \A (?: \Q$indent\E \S[^\n]+ \n )+ \z /msux)
521 3 11 unless (defined $metadata)
524 1 13 unless (-d $metadata)
567 6 39 if ($file eq 'testing')
573 3 31 if ($data_ref->{'orphaned'})
578 15 19 if ($data_ref->{'quote'})
585 0 34 unless (exists $licenses_ref->{$license})
619 25 9 unless (exists $vars{'build'}{'install'})
641 0 34 unless my $tt = 'Template'->new({'ABSOLUTE', 1})
643 0 34 unless $tt->process($template, \%vars, \$result)
681 0 10 unless (defined $output)
687 0 10 unless print {$outfh;} $self->generate($template)