Branch Coverage

blib/lib/Tags/Output/Indent.pm
Criterion Covered Total %
branch 66 84 78.5


line true false branch
29 1 3 if ($self->{'xml'}) { }
40 3 0 if (scalar @{$self->{'tmp_code'};})
108 1 30 if ($self->{'attr_delimeter'} ne "\"" and $self->{'attr_delimeter'} ne "'")
169 53 195 unless ($self->{'process'})
181 9 141 if ($self->{'raw_tag'}) { }
187 87 54 if ($self->{'process'} and $pre_pre == 0)
198 62 0 if ($string)
199 9 53 if ($string =~ m[^/>$]ms)
207 4 58 if ($self->{'comment_flag'} == 0 and scalar @{$self->{'tmp_comment_code'};}) { }
220 4 0 unless ($self->{'non_indent'} or $pre)
227 0 4 $pre ? :
232 4 0 unless ($self->{'non_indent'} or $pre)
239 58 0 unless ($self->{'non_indent'} or $pre)
246 0 58 $pre ? :
251 58 0 unless ($self->{'non_indent'} or $pre)
273 47 0 unless ($self->{'non_indent'} or $pre)
275 45 2 unless ($pre_pre)
280 0 47 $pre ? :
292 0 20 unless (@{$self->{'tmp_code'};})
297 0 20 if ($self->{'xml'} and not defined $value)
303 20 0 if (defined $value)
310 20 0 if (defined $attr[1])
326 10 52 if (scalar @{$self->{'tmp_code'};})
349 5 1 if (scalar @{$self->{'tmp_code'};})
357 1 5 if (join($EMPTY_STR, @cdata) =~ /]]>$/ms)
373 1 4 $self->{'cdata_indent'} == 1 ? :
388 1 11 if (substr($comments[$LAST_INDEX], $LAST_INDEX) eq '-') { }
395 8 4 if (scalar @{$self->{'tmp_code'};}) { }
415 20 3 if (scalar @{$self->{'tmp_code'};})
420 43 1 if defined $self->{'printed_tags'}[0]
22 1 if (&none(sub { $_ eq $self->{'printed_tags'}[0] if defined $self->{'printed_tags'}[0]; } , @{$$self{"no_data_callback"};}))
431 2 21 $pre ? :
2 21 $pre ? :
443 0 56 if ($self->{'xml'} and $printed ne $tag)
448 23 33 if ($self->{'xml'} and !scalar(@{$self->{'no_simple'};}) || &none(sub { $_ eq $tag; } , @{$$self{'no_simple'};})) { }
452 12 11 if (scalar @{$self->{'tmp_code'};}) { }
453 3 9 if (scalar @{$self->{'tmp_comment_code'};} and $self->{'comment_flag'} == 1) { }
461 9 0 unless ($self->{'non_indent'} or $pre)
471 6 27 if (scalar @{$self->{'tmp_code'};})
488 0 1 if (scalar @{$self->{'tmp_code'};})
493 0 1 if (ref $self->{'instruction'} eq 'CODE') { }
515 6 5 if (scalar @{$self->{'tmp_code'};})