Branch Coverage

blib/lib/MooX/VariantAttribute/Role.pm
Criterion Covered Total %
branch 44 48 91.6


line true false branch
18 27 34 if $self->_variant_last_value($attr, 'set', $set)
28 34 33 if (_struct_the_same($check, $find))
29 2 32 if ($found->{'alias'})
30 1 1 if (&blessed($set)) { }
32 0 1 if $set->can($alias)
44 32 2 if (my $run = $found->{'run'})
46 27 5 ref $run eq 'CODE' ? :
48 0 32 scalar @new > 1 ? :
63 15 51 unless my $stored = $self->variant_last_value->{$attr}{$value}
70 13 49 if (ref $passed and ref $stored)
71 7 6 &refaddr($stored) == &refaddr($passed) ? :
74 27 22 $stored =~ /^$passed$/ ? :
82 13 102 unless $stored_ref eq $passed_ref
84 71 31 if ($stored_ref eq 'SCALAR') { }
24 7 elsif ($stored_ref eq 'HASH') { }
7 0 elsif ($stored_ref eq 'ARRAY') { }
85 50 21 $stored =~ /^$passed$/ ? :
88 7 19 unless $stored->{$_} and $passed->{$_}
89 1 18 unless _struct_the_same($stored->{$_}, $passed->{$_})
94 2 5 unless $count[0] == $count[1]
96 1 11 unless _struct_the_same($stored->[$_], $passed->[$_])
108 34 7 if ($ref_given eq 'Type::Tiny') { }
7 0 elsif ($ref_given eq 'CODE') { }
110 2 32 $given->display_name eq 'Object' ? :