Branch Coverage

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


line true false branch
15 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') { }
17 2 2 index($arg2, $arg1) > -1 ? :
25 2 6 if (DTL::Fast::Expression::Operator::Binary::Eq::dispatch($self, $arg1, $a2))
34 2 2 exists $arg2->{$arg1} ? :
45 0 0 if (DTL::Fast::Expression::Operator::Binary::Eq::dispatch($self, $a1, $a2))
52 0 0 unless ($found)
64 0 0 unless (exists $arg2->{$key1} and DTL::Fast::Expression::Operator::Binary::Eq::dispatch($self, $arg1->{$key1}, $arg2->{$key1}))
77 0 13 if (not defined $result and UNIVERSAL::can($arg1, 'in'))
86 0 13 if (not defined $result and UNIVERSAL::can($arg2, 'contains'))
95 1 12 unless (defined $result)