Branch Coverage

blib/lib/Tags/Output/Raw.pm
Criterion Covered Total %
branch 53 54 98.1


line true false branch
25 1 4 if ($self->{'xml'}) { }
36 3 1 if (scalar @{$self->{'tmp_code'};})
77 1 48 if ($self->{'attr_delimeter'} ne "\"" and $self->{'attr_delimeter'} ne "'")
132 4 79 if ($pre and not $pre_pre)
137 3 80 if ($self->{'comment_flag'} == 0 and scalar @{$self->{'tmp_comment_code'};}) { }
163 1 28 unless (@{$self->{'tmp_code'};})
168 0 28 if ($self->{'xml'} and not defined $value)
174 27 1 if (defined $value)
181 27 1 if (defined $attr[1])
198 15 69 if (scalar @{$self->{'tmp_code'};})
223 3 1 if (scalar @{$self->{'tmp_code'};})
231 1 3 if (join($EMPTY_STR, @cdata) =~ /]]>$/ms)
253 1 8 if (substr($comments[$LAST_INDEX], $LAST_INDEX) eq '-') { }
261 5 4 if (scalar @{$self->{'tmp_code'};}) { }
278 32 3 if (scalar @{$self->{'tmp_code'};})
283 67 1 if defined $self->{'printed_tags'}[0]
34 1 if (&none(sub { $_ eq $self->{'printed_tags'}[0] if defined $self->{'printed_tags'}[0]; } , @{$$self{"no_data_callback"};}))
299 48 30 if ($self->{'xml'})
301 1 47 if (not defined $printed) { }
1 46 elsif ($printed ne $tag) { }
310 45 31 if ($self->{'xml'} and !scalar(@{$self->{'no_simple'};}) || &none(sub { $_ eq $tag; } , @{$$self{'no_simple'};})) { }
313 13 32 if (scalar @{$self->{'tmp_code'};}) { }
314 2 11 if (scalar @{$self->{'tmp_comment_code'};} and $self->{'comment_flag'} == 1) { }
328 10 21 if (scalar @{$self->{'tmp_code'};})
343 1 2 if (scalar @{$self->{'tmp_code'};})
349 2 1 if ($code)
362 6 5 if (scalar @{$self->{'tmp_code'};})