Branch Coverage

blib/lib/Rope/Variant.pm
Criterion Covered Total %
branch 20 46 43.4


line true false branch
14 7 0 if ($ref_given eq 'Type::Tiny') { }
0 0 elsif ($ref_given eq 'CODE') { }
16 3 4 $given->display_name eq 'Object' ? :
27 0 16 unless $stored_ref eq $passed_ref
28 16 0 if ($stored_ref eq 'STRING') { }
0 0 elsif ($stored_ref eq 'SCALAR') { }
0 0 elsif ($stored_ref eq 'HASH') { }
0 0 elsif ($stored_ref eq 'ARRAY') { }
29 7 9 $stored =~ /^$passed$/ ? :
31 0 0 $$stored =~ /^$$passed$/ ? :
34 0 0 unless $stored->{$_} and $passed->{$_}
35 0 0 unless $PRO{'struct_the_same'}->($stored->{$_}, $passed->{$_})
40 0 0 unless $count[0] == $count[1]
42 0 0 unless $PRO{'struct_the_same'}->($stored->[$_], $passed->[$_])
57 1 2 if ($meta->{'properties'}{$name})
58 1 0 if ($meta->{'properties'}{$name}{'variant'}) { }
81 7 9 if ($PRO{'struct_the_same'}->($check, $find))
82 3 4 if ($found->{'alias'}) { }
4 0 elsif ($found->{'run'}) { }
83 3 0 if (ref $set ne 'HASH') { }
85 0 4 if $set->can($alias)
101 4 0 ref $run ? :
108 2 1 if not $exists