Branch Coverage

blib/lib/MooX/VariantAttribute/Role.pm
Criterion Covered Total %
branch 45 48 93.7


line true false branch
18 37 45 if $self->_variant_last_value($attr, 'set', $set)
27 44 45 if (_struct_the_same($check, $find))
28 6 38 if ($found->{'alias'})
29 5 1 if (&blessed($set)) { }
31 1 5 if $set->can($alias)
43 38 6 if ($run = $found->{'run'})
45 33 5 ref $run eq 'CODE' ? :
47 0 38 scalar @new > 1 ? :
62 22 65 unless my $stored = $self->variant_last_value->{$attr}{$value}
69 17 59 if (ref $passed and ref $stored)
70 11 6 &refaddr($stored) == &refaddr($passed) ? :
73 33 26 $stored =~ /^$passed$/ ? :
81 13 124 unless $stored_ref eq $passed_ref
83 93 31 if ($stored_ref eq 'SCALAR') { }
24 7 elsif ($stored_ref eq 'HASH') { }
7 0 elsif ($stored_ref eq 'ARRAY') { }
84 60 33 $stored =~ /^$passed$/ ? :
87 7 19 unless $stored->{$_} and $passed->{$_}
88 1 18 unless _struct_the_same($stored->{$_}, $passed->{$_})
93 2 5 unless $count[0] == $count[1]
95 1 11 unless _struct_the_same($stored->[$_], $passed->[$_])
107 42 10 if ($ref_given eq 'Type::Tiny') { }
10 0 elsif ($ref_given eq 'CODE') { }
109 7 35 $given->display_name eq 'Object' ? :