Branch Coverage

blib/lib/YAML/Tidy/Node.pm
Criterion Covered Total %
branch 49 56 87.5


line true false branch
22 42840 1454 if ($self->is_collection) { }
48 0 13 $ENV{'YAML_TIDY_DEBUG'} ? :
58 7059 27154 if ($firstevent->{'name'} eq "document_start_event")
69 0 727 unless $diff
72 0 727 unless ("$$children[$node->{'index'} - 1]" eq "$node")
76 0 727 if ($new_index < 0 or $new_index > $children->$#*)
119 770 6074 if $self->end->{'line'} < $line
120 941 5133 if $self->start->{'line'} > $line
123 804 19728 if ($pos->{'line'} == $line and $pos->{'column'} >= $offset)
141 3039 10953 if ($pos->{'line'} == $line)
155 3400 4578 if ($pos->{'line'} >= $startline)
160 2922 5056 if ($pos->{'column'} == 0 and $pos->{'line'} == $startline) { }
3910 1146 elsif ($pos->{'line'} >= $startline) { }
173 0 13 $ENV{'YAML_TIDY_DEBUG'} ? :
195 15 4540 if ($self->empty_leaf and $pos->{'column'} == 0 and $pos->{'line'} == $startline) { }
2233 2307 elsif ($pos->{'line'} >= $startline) { }
202 84 4471 if ($pos->{'column'} == 0 and $pos->{'line'} == $startline) { }
2233 2238 elsif ($pos->{'line'} >= $startline) { }
212 528 22231 if ($start->{'line'} == $end->{'line'} and $start->{'column'} == $end->{'column'})
229 2850 7134 if ($pos->{'line'} == $line)
237 3076 5462 if $self->end->{'line'} < $line
238 2654 2808 if $self->start->{'line'} > $line
240 1522 4094 if ($pos->{'line'} == $line and $pos->{'column'} >= $offset)
249 0 13 $ENV{'YAML_TIDY_DEBUG'} ? :
265 2341 10135 if ($self->{'style'} == 4 or $self->{'style'} == 5)
267 2265 76 if ($end->{'column'} == 0)
284 2762 19120 if ($self->open->{'line'} < $self->close->{'line'})
291 0 13 $ENV{'YAML_TIDY_DEBUG'} ? :