Branch Coverage

blib/lib/App/DocKnot/Generate.pm
Criterion Covered Total %
branch 24 30 80.0


line true false branch
52 0 42 if ($space <= 0) { }
93 24 0 if (rindex($text, "\n") == -1) { }
98 17 7 if ($last_length + length($holder) < $self->{'width'}) { }
191 10 352 if (%urls)
322 167 1999 if (length $indent > 4)
327 219 1780 if ($paragraph =~ / \A \s* (?: \\ | \[\d+\] ) /msux)
333 80 1700 if ($paragraph =~ s/ \A (\s*) [*] (\s+) /$1 $2/msux)
342 13 1687 if ($paragraph =~ / \A \s* > \s /msux)
348 85 1602 if ($paragraph =~ / \A [^\n]{1,40} \n [^\n]{1,40} \n /msux)
353 105 1497 unless ($paragraph =~ / \A (?: \Q$indent\E \S[^\n]+ \n )+ \z /msux)
431 11 3 if ($args_ref->{'metadata'})
475 0 34 unless my $tt = 'Template'->new({'ABSOLUTE', 1})
477 0 34 unless $tt->process($template, \%vars, \$result)
515 0 10 unless (defined $output)
521 0 10 unless print {$outfh;} $self->generate($template)