Branch Coverage

blib/lib/Class/Simple/Cached.pm
Criterion Covered Total %
branch 27 36 75.0


line true false branch
51 0 4 unless defined $class
54 1 3 if (ref $_[0] eq 'HASH') { }
0 3 elsif (ref $_[0]) { }
3 0 elsif (@_ % 2 == 0) { }
63 3 1 unless (defined $args{'object'})
67 2 2 if ($args{'cache'})
77 0 0 if (ref $self->{'object'} eq 'Class::Simple')
91 2 15 if ($param eq 'DESTROY')
92 2 0 if (defined $^V and $^V ge 'v5.14.0')
93 0 2 if ${^GLOBAL_PHASE} eq 'DESTRUCT'
108 12 3 if (scalar @_ == 0)
110 7 5 if (my $rc = $cache->get($param))
111 0 7 if (ref $rc eq 'ARRAY')
114 1 6 if ($rc eq 'Class::Simple::Cached>UNDEF<')
119 2 3 if (wantarray)
121 0 2 if (scalar @rc == 0)
128 1 2 unless (defined $rc)
137 1 2 if ($_[1])