Branch Coverage

blib/lib/Imager/Bing/MapLayer/Level.pm
Criterion Covered Total %
branch 16 58 27.5


line true false branch
247 39 0 if (my $method = $self->can($ARG_TO_METHOD{$arg}))
249 0 39 if exists $args{$arg}
272 13 52 if (defined $x and defined $y)
274 0 13 if (ref $x or ref $y) { }
276 0 0 if ($suffix) { }
293 0 0 ref $x ? :
294 0 0 ref $y ? :
399 14 0 unless $self->in_memory
406 0 0 if ($self->_last_cleanup_time + $self->in_memory < $time)
417 0 0 unless $$tiles{$key}
419 0 0 if $$timeouts{$key} > $time
466 0 13 if ($args{'-min_level'} // $Imager::Bing::MapLayer::Level::MIN_ZOOM_LEVEL) > $self->level
469 0 13 if ($args{'-max_level'} // $Imager::Bing::MapLayer::Level::MAX_ZOOM_LEVEL) < $self->level
474 12 0 if exists $args{$arg}
527 0 13 unless ($image)
537 13 0 if (my $method = $image->can($$opts{'name'})) { }
570 13 0 unless (defined $$tiles{$key})
572 0 13 exists $$tiles{$key} && $self->in_memory ? :
586 13 0 if (my $tile = $$tiles{$key})
603 0 13 unless my $crop = $image->crop('left', $crop_left, 'top', $crop_top, 'width', $crop_width, 'height', $crop_height)
622 0 13 if ($self->in_memory) { }
751 0 0 unless ($tile)
758 0 0 $self->in_memory ? :
764 0 0 if ($tile)
766 0 0 unless $tile->image->filter(%args)
798 0 0 unless ($tile)
805 0 0 $self->in_memory ? :
811 0 0 if ($tile)
846 0 0 if $tile