Branch Coverage

blib/lib/MouseX/NativeTraits/MethodProvider/ArrayRef.pm
Criterion Covered Total %
branch 87 104 83.6


line true false branch
13 10 13 if (@_ != 1)
24 10 32 if (@_ != 1)
37 30 30 if (@_ != 2)
41 10 20 unless Mouse::Util::TypeConstraints::CodeRef($block)
55 0 1 if (@_ != 2)
59 0 1 unless Mouse::Util::TypeConstraints::CodeRef($block)
64 1 2 if (&$block($_))
78 0 1 if (@_ != 2)
82 0 1 unless Mouse::Util::TypeConstraints::CodeRef($block)
100 30 32 if (@_ != 2)
104 10 22 unless Mouse::Util::TypeConstraints::CodeRef($block)
118 30 30 if (@_ != 2)
122 10 20 unless Mouse::Util::TypeConstraints::CodeRef($block)
137 10 30 if (@_ < 1 or @_ > 2)
141 20 10 if (defined $block) { }
142 10 10 unless Mouse::Util::TypeConstraints::CodeRef($block)
161 20 40 if (@_ < 1 or @_ > 2)
167 30 10 if (defined $block) { }
168 10 20 unless Mouse::Util::TypeConstraints::CodeRef($block)
191 0 1 if (@_ < 1 or @_ > 3)
202 1 0 if ($compare) { }
225 0 1 if (@_ < 1 or @_ > 3)
235 1 0 if ($compare) { }
258 10 10 if (@_ != 1)
272 30 40 if (@_ != 2)
276 10 30 unless Mouse::Util::TypeConstraints::CodeRef($block)
290 10 10 if (@_ != 1)
296 110 0 defined $_ ? :
311 10 12 if (@_ != 1)
325 20 30 if (@_ != 2)
329 10 20 unless Mouse::Util::TypeConstraints::Str($separator)
356 10 13 if (@_ != 1)
383 10 10 if (@_ != 1)
399 20 135 if (@_ != 2)
403 30 105 unless Mouse::Util::TypeConstraints::Int($idx)
420 30 41 if (@_ != 3)
424 0 41 unless Mouse::Util::TypeConstraints::Int($idx)
444 22 72 if (@_ == 2) { }
32 40 elsif (@_ == 3) { }
445 0 22 unless Mouse::Util::TypeConstraints::Int($idx)
452 0 32 unless Mouse::Util::TypeConstraints::Int($idx)
474 10 20 if (@_ != 1)
491 20 20 if (@_ != 2)
495 0 20 unless Mouse::Util::TypeConstraints::Int($idx)
511 10 10 if (@_ != 3)
515 0 10 unless Mouse::Util::TypeConstraints::Int($idx)
534 10 80 if (@_ < 2)
538 0 80 unless Mouse::Util::TypeConstraints::Int($idx)
542 80 0 if (defined $len)
543 10 70 unless Mouse::Util::TypeConstraints::Int($len)
549 70 0 defined $len ? :
553 20 50 wantarray ? :