Branch Coverage

blib/lib/HTML/FormFu/OutputProcessor/Indent.pm
Criterion Covered Total %
branch 19 20 95.0


line true false branch
43 33 83 if ($token->is_start_tag) { }
28 55 elsif ($token->is_end_tag) { }
55 0 elsif ($token->is_text) { }
46 7 26 if (&any(sub { $tag eq $_; } , @preserve_tags))
53 28 5 if (not defined $token->get_attrseq->[-1] or $token->get_attrseq->[-1] ne '/')
64 15 13 if ($output =~ / > \s* \z /x and not $in_pre)
68 7 21 if (&any(sub { $tag eq $_; } , @preserve_tags))
77 49 6 if (length $parser->peek and not $in_pre)
82 43 12 if ($text eq $HTML::FormFu::OutputProcessor::Indent::SPACE and $parser->peek =~ / < /x)
92 28 88 if ($parser->peek =~ m[ < (?!/) ]x and not $in_pre)