Branch Coverage

lib/Class/Simple/Readonly/Cached.pm
Criterion Covered Total %
branch 49 60 81.6


line true false branch
68 0 10 unless (defined $class)
74 2 8 if (ref $_[0] eq 'HASH') { }
0 8 elsif (ref $_[0]) { }
8 0 elsif (@_ % 2 == 0) { }
83 3 7 unless ($args{'cache'})
88 5 2 if (defined $args{'object'}) { }
89 4 1 if (ref $args{'object'}) { }
90 1 3 if (ref $args{'object'} eq "Class::Simple::Readonly::Cached")
123 0 0 if (ref $self->{'object'} eq "Class::Simple")
152 5 38 if ($param eq "DESTROY")
153 5 0 if ($cache)
154 4 1 if (ref $cache eq "HASH")
160 1 0 if (defined $^V and $^V ge "v5.14.0")
161 0 1 if ${^GLOBAL_PHASE} eq "DESTRUCT"
179 21 17 if (ref $cache eq 'HASH') { }
184 18 20 if (defined $rc)
186 0 18 if $rc eq "never"
187 6 12 if (ref $rc eq "ARRAY")
190 5 1 if (wantarray)
191 4 1 if (defined $foo[0])
192 0 4 if $foo[0] eq "Class::Simple::Readonly::Cached>UNDEF<"
193 0 4 if $foo[0] eq "never"
199 2 10 if ($rc eq "Class::Simple::Readonly::Cached>UNDEF<")
203 9 1 unless (wantarray)
211 8 13 if (wantarray)
213 2 6 if (scalar @rc == 0)
216 3 3 if (ref $cache eq 'HASH') { }
224 2 11 unless (defined $rc)
225 1 1 if (ref $cache eq 'HASH') { }
236 7 4 if (ref $cache eq "HASH")