Branch Coverage

blib/lib/CLI/Driver.pm
Criterion Covered Total %
branch 38 122 31.1


line true false branch
213 17 0 @_ ? :
17 0 $#_ >= 0 ? :
215 1 16 if ($self->has_argv_map)
220 0 0 @_ ? :
0 0 if @_ != 1
0 0 $#_ >= 0 ? :
0 0 XXX ? :
0 0 if ($#_ >= 0)
226 21 0 @_ ? :
0 21 if ($slice_length % 2 != 0)
0 21 if ($#_ == 0 and ref $_[0] eq 'HASH') { }
21 0 exists $_{'name'} ? :
21 0 Type::Tiny::XS::Str($name) ? :
21 0 if (exists $_{'name'})
231 21 146 if ($action->name eq $name)
237 21 0 @_ ? :
0 21 if ($slice_length % 2 != 0)
0 21 if ($#_ == 0 and ref $_[0] eq 'HASH') { }
0 21 exists $_{'want_hashref'} ? :
21 0 Type::Tiny::XS::Bool($want_hashref) ? :
241 0 21 if ($want_hashref)
246 0 0 if $name =~ /dummy/iu
256 0 0 @_ ? :
259 0 0 if ($action) { }
267 0 0 @_ ? :
278 0 0 if (not @ARGV) { }
0 0 elsif (@ARGV) { }
286 0 0 if ($action_name)
289 0 0 if ($dump)
295 0 0 if ($help)
296 0 0 if ($action) { }
307 0 0 @_ ? :
0 0 if @_ > 1
0 0 $#_ >= 0 ? :
0 0 Type::Tiny::XS::Str($errmsg) ? :
0 0 if ($#_ >= 0)
309 0 0 if $errmsg
317 0 0 if $action->name =~ /dummy/iu
322 0 0 if ($action->is_deprecated)
344 17 0 @_ ? :
348 0 17 if ($self->use_file_sharedir) { }
351 0 0 unless ($dist_name)
363 17 0 if ($self->path)
372 17 0 if (-f $fullpath)
382 17 0 @_ ? :
392 16 256 $self->has_argv_map ? :
398 272 0 if ($success)
406 17 0 @_ ? :
0 17 if ($slice_length % 2 != 0)
0 17 if ($#_ == 0 and ref $_[0] eq 'HASH') { }
17 0 exists $_{'path'} ? :
17 0 Type::Tiny::XS::Str($path) ? :
17 0 if (exists $_{'path'})
412 0 17 if $@
417 0 0 @_ ? :
419 0 0 if ($ENV{'CLI_DRIVER_FILE'})
426 1 0 @_ ? :
0 1 if @_ != 1
1 0 $#_ >= 0 ? :
1 0 XXX ? :
1 0 if ($#_ >= 0)