Branch Coverage

blib/lib/CLI/Driver/Class.pm
Criterion Covered Total %
branch 26 44 59.0


line true false branch
32 272 0 @_ ? :
0 272 if ($slice_length % 2 != 0)
0 272 if ($#_ == 0 and ref $_[0] eq 'HASH') { }
272 0 exists $_{'href'} ? :
272 0 XXX ? :
272 0 if (exists $_{'href'})
35 0 272 if (not $href->{'name'}) { }
45 0 272 if (not $attr) { }
56 29 0 @_ ? :
0 29 if ($slice_length % 2 != 0)
0 29 if ($#_ == 0 and ref $_[0] eq 'HASH') { }
29 0 exists $_{'hard'} ? :
29 0 Type::Tiny::XS::Bool($hard) ? :
29 0 exists $_{'soft'} ? :
29 0 Type::Tiny::XS::Bool($soft) ? :
63 16 11 if ($opt->is_required)
65 0 16 if ($hard and $opt->is_hard) { }
2 14 elsif ($soft and $opt->is_soft) { }
80 31 0 @_ ? :
90 21 8 if (@keys == 1) { }
0 8 elsif (@keys > 1) { }
2 10 elsif ($opt->is_required and $opt->is_hard) { }