Branch Coverage

blib/lib/List/MRU.pm
Criterion Covered Total %
branch 32 38 84.2


line true false branch
16 1 10 unless defined $arg{'max'}
17 3 7 unless $arg{'max'} =~ /^\d+$/
18 2 5 if $arg{'eq'} and ref $arg{'eq'} ne 'CODE'
37 4 7 if ($self->uuid)
53 1 19 unless defined $item
54 0 19 if $self->uuid and not defined $uuid
55 8 11 if ($self->delete('item', $item, 'uuid', $uuid)) { }
57 4 4 if $self->uuid
61 4 7 if $self->uuid
73 21 1 if ($item and $item eq 'item' || $item eq 'uuid')
79 1 22 unless defined $item or defined $uuid
82 11 23 if ($self->uuid and $uuid and $$self{'ulist'}[$i] eq $uuid or $item and &$eq($item, $$self{'list'}[$i]))
85 5 6 if $self->uuid
86 0 11 wantarray && $self->uuid ? :
94 5 2 if ($$self{'current'} <= $#{$$self{'list'};}) { }
97 5 0 $self->uuid ? :
5 0 wantarray ? :
103 2 0 wantarray ? :
108 15 0 wantarray ? :