Branch Coverage

blib/lib/Text/CaffeinatedMarkup/HTMLFormatter.pm
Criterion Covered Total %
branch 62 70 88.5


line true false branch
67 37 134 if ($type eq 'NEWLINE') { }
75 127 7 unless ($type eq 'HEADER')
77 2 125 if ($self->num_breaks == 1) { }
13 112 elsif ($self->num_breaks > 1) { }
81 13 0 if $self->is_paragraph_open
88 2 132 if ($type eq 'QUOTE')
90 0 2 if $self->is_paragraph_open
95 1 1 if ($$token{'cite'})
102 14 120 if ($type eq 'ROW')
103 7 7 if ($self->is_in_row) { }
106 7 0 if ($self->is_in_column)
107 7 0 if $self->is_paragraph_open
136 2 5 if $self->is_paragraph_open
142 12 108 if ($type eq 'COLUMN')
146 5 7 if ($self->is_in_column)
147 5 0 if $self->is_paragraph_open
157 12 108 if ($type =~ /^(STRONG|EMPHASIS|UNDERLINE|DEL)$/o)
163 10 98 if ($type eq 'LINK')
171 19 79 if ($type eq 'IMAGE')
173 17 2 if ($$token{'options'})
182 10 25 if $option eq '<<'
183 1 34 if $option eq '>>'
184 1 34 if $option eq '<>'
185 1 34 if $option eq '><'
187 11 24 if ($option =~ /^H(.+)$/)
188 11 24 if ($option =~ /^W(.+)$/)
195 7 72 if ($type eq 'HEADER')
200 58 14 if ($type eq 'STRING')
201 24 34 unless $self->is_paragraph_open
214 14 22 if $self->is_paragraph_open
231 6 6 if (@{$self->tag_stack;} and $self->tag_stack->[0] eq $type) { }
240 4 2 unless $self->is_paragraph_open
265 0 41 if $self->is_paragraph_open
275 0 27 unless $self->is_paragraph_open
276 0 27 unless $self->tag_stack->[0] eq 'PARAGRAPH'