Branch Coverage

blib/lib/exact/class.pm
Criterion Covered Total %
branch 53 58 91.3


line true false branch
17 26 3 if ($caller) { }
22 1 2 if $self eq "exact::class"
49 68 47 if (ref $store->{'struc'}{$namespace} eq "HASH")
58 4 64 if exists $input->{$class_has_name}
62 10 161 if (exists $input->{$has_name}) { }
111 50 elsif (exists $store->{'struc'}{$namespace}{'value'}{$has_name}) { }
77 6 2 @_ > 1 ? :
8 30 @_ ? :
81 26 63 if (ref $store->{'roles'}{$namespace} eq "ARRAY")
110 127 52 if @_ > 2
122 12 0 if @_ > 1
136 35 10 if @_ > 1
143 6 259 ref $set->{'attrs'} ? :
148 151 113 if (@_ > 1) { }
155 4 109 if ref $self->{$name} eq "REF" and ref ${$self->{$name};} eq "CODE"
158 9 100 if ref $self->{$name} eq "CODE"
165 16 69 if (@_ > 1) { }
172 0 69 if ref $store->{'struc'}{$set->{'caller'}}{'value'}{$name} eq "REF" and ref ${$store->{'struc'}{$set->{'caller'}}{'value'}{$name};} eq "CODE"
177 0 69 if ref $store->{'struc'}{$set->{'caller'}}{'value'}{$name} eq "CODE"
180 197 80 $set->{'obj_accessor'} ? :
188 179 98 if (ref $set->{'self'}) { }
189 127 52 if exists $set->{'value'}
192 75 23 if $set->{'set_has'}
194 80 18 if exists $set->{'value'}
214 18 11 if ($store->{'struc'}{$role}{'has'}{$name})
221 25 4 if exists $store->{'struc'}{$role}{'value'}{$name}
250 4 1 if (my $class = &Scalar::Util::blessed($self)) { }
253 1 0 /^\+(.+)$/u ? :
259 0 4 /^\+(.+)$/u ? :