Branch Coverage

blib/lib/DTL/Fast/Expression/Operator/Binary/In.pm
Criterion Covered Total %
branch 18 28 64.2


line true false branch
17 4 9 if (not $arg2_type || $arg1_type) { }
4 5 elsif (not $arg1_type and $arg2_type eq 'ARRAY') { }
4 1 elsif (not $arg1_type and $arg2_type eq 'HASH') { }
0 1 elsif ($arg2_type eq 'ARRAY' and $arg1_type eq 'ARRAY') { }
0 2 elsif ($arg2_type eq 'HASH' and $arg1_type eq 'HASH') { }
19 2 2 index($arg2, $arg1) > -1 ? :
27 2 6 if (DTL::Fast::Expression::Operator::Binary::Eq::dispatch($self, $arg1, $a2))
36 2 2 exists $arg2->{$arg1} ? :
47 0 0 if (DTL::Fast::Expression::Operator::Binary::Eq::dispatch($self, $a1, $a2))
54 0 0 unless ($found)
66 0 0 unless (exists $arg2->{$key1} and DTL::Fast::Expression::Operator::Binary::Eq::dispatch($self, $arg1->{$key1}, $arg2->{$key1}))
79 0 13 if (not defined $result and UNIVERSAL::can($arg1, 'in'))
88 0 13 if (not defined $result and UNIVERSAL::can($arg2, 'contains'))
97 1 12 unless (defined $result)