Branch Coverage

blib/lib/Mojo/Util/Collection/Comparator.pm
Criterion Covered Total %
branch 35 48 72.9


line true false branch
31 0 8 if (scalar @$values != 2)
39 4 4 $self->gt($search, $min) && $self->lt($search, $max) ? :
54 0 8 if $self->__both_undefined($a, $b)
56 2 6 $a == $b ? :
71 0 21 if $self->__both_undefined($a, $b)
73 17 4 $a > $b ? :
88 0 8 if $self->__both_undefined($a, $b)
90 4 4 $a >= $b ? :
133 0 23 if $self->__both_undefined($a, $b)
135 11 12 $a < $b ? :
150 0 8 if $self->__both_undefined($a, $b)
152 4 4 $a <= $b ? :
167 3 5 $search =~ /$pattern/u ? :
182 0 4 if $self->__both_undefined($a, $b)
184 3 1 $a != $b ? :
212 0 0 !($search =~ /$pattern/u) ? :
227 0 126 if $self->__both_undefined($a, $b)
230 85 41 if (ref $b eq "HASH")
233 8 77 if (scalar @keys > 1)
240 24 0 if (not $self->can($method) and $self->specials->{$method})
244 0 77 unless ($self->can($comparator))
253 8 33 if (ref $b eq "ARRAY")
258 11 22 ($a || '') eq ($b || '') ? :
273 0 198 !(defined $a || defined $b) ? :