Branch Coverage

blib/lib/YAML/Tidy/Node.pm
Criterion Covered Total %
branch 47 52 90.3


line true false branch
22 44872 1498 if ($self->is_collection) { }
48 0 6 $ENV{'YAML_TIDY_DEBUG'} ? :
56 7460 28451 if ($firstevent->{'name'} eq "document_start_event")
67 0 749 unless $diff
70 0 749 unless ("$$children[$node->{'index'} - 1]" eq "$node")
74 0 749 if ($new_index < 0 or $new_index > $#$children)
117 746 5874 if $self->end->{'line'} < $line
118 909 4965 if $self->start->{'line'} > $line
121 770 19090 if ($pos->{'line'} == $line and $pos->{'column'} >= $offset)
139 3207 11465 if ($pos->{'line'} == $line)
153 3336 4578 if ($pos->{'line'} >= $startline)
158 2922 4992 if ($pos->{'column'} == 0 and $pos->{'line'} == $startline) { }
3846 1146 elsif ($pos->{'line'} >= $startline) { }
170 0 6 $ENV{'YAML_TIDY_DEBUG'} ? :
203 2494 10620 if ($self->{'style'} == 4 or $self->{'style'} == 5)
205 2414 80 if ($end->{'column'} == 0)
222 2930 19992 if ($self->open->{'line'} < $self->close->{'line'})
230 551 22998 if ($start->{'line'} == $end->{'line'} and $start->{'column'} == $end->{'column'})
244 2964 5276 if $self->end->{'line'} < $line
245 2603 2673 if $self->start->{'line'} > $line
247 1402 3944 if ($pos->{'line'} == $line and $pos->{'column'} >= $offset)
258 2989 7483 if ($pos->{'line'} == $line)
267 15 4485 if ($self->empty_scalar and $pos->{'column'} == 0 and $pos->{'line'} == $startline) { }
2178 2307 elsif ($pos->{'line'} >= $startline) { }
274 84 4416 if ($pos->{'column'} == 0 and $pos->{'line'} == $startline) { }
2178 2238 elsif ($pos->{'line'} >= $startline) { }