Branch Coverage

lib/SVG/Estimate.pm
Criterion Covered Total %
branch 27 32 84.3


line true false branch
274 93 34 if (ref $elements eq 'ARRAY') { }
34 0 elsif (ref $elements eq 'HASH') { }
277 73 627 if (&any(sub { $keys[0] eq $_; } , 'g', 'svg')) { }
597 30 elsif (&any(sub { $keys[0] eq $_; } , 'line', 'ellipse', 'rect', 'circle', 'polygon', 'polyline', 'path')) { }
285 0 597 if ($self->summarize)
289 9 588 if (exists $params{'transform'})
291 0 9 if ($self->summarize)
298 0 595 if ($self->summarize)
305 24 571 if $shape->min_x < $self->min_x
306 38 557 if $shape->max_x > $self->max_x
307 27 568 if $shape->min_y < $self->min_y
308 34 561 if $shape->max_y > $self->max_y
309 9 586 if (exists $params{'transform'})
315 5 25 if (exists $element->{'-transform'})
318 0 5 if ($self->summarize)
334 4 120 if $has_transform