Branch Coverage

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


line true false branch
214 17 0 @_ ? :
17 0 $#_ >= 0 ? :
216 1 16 if ($self->has_argv_map)
221 0 0 @_ ? :
0 0 if @_ != 1
0 0 $#_ >= 0 ? :
0 0 XXX ? :
0 0 if ($#_ >= 0)
227 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'})
232 21 134 if ($action->name eq $name)
238 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) ? :
242 0 21 if ($want_hashref)
247 0 0 if $name =~ /dummy/iu
257 0 0 @_ ? :
260 0 0 if ($action) { }
268 0 0 @_ ? :
279 0 0 if (not @ARGV) { }
0 0 elsif (@ARGV) { }
287 0 0 if ($action_name)
290 0 0 if ($dump)
296 0 0 if ($help)
297 0 0 if ($action) { }
308 0 0 @_ ? :
0 0 if @_ > 1
0 0 $#_ >= 0 ? :
0 0 Type::Tiny::XS::Str($errmsg) ? :
0 0 if ($#_ >= 0)
310 0 0 if $errmsg
318 0 0 if $action->name =~ /dummy/iu
323 0 0 if ($action->is_deprecated)
345 17 0 @_ ? :
349 0 17 if ($self->use_file_sharedir) { }
352 0 0 unless ($dist_name)
364 17 0 if ($self->path)
373 17 0 if (-f $fullpath)
383 17 0 @_ ? :
393 16 256 $self->has_argv_map ? :
399 272 0 if ($success)
407 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'})
413 0 17 if $@
418 0 0 @_ ? :
420 0 0 if ($ENV{'CLI_DRIVER_FILE'})
427 1 0 @_ ? :
0 1 if @_ != 1
1 0 $#_ >= 0 ? :
1 0 XXX ? :
1 0 if ($#_ >= 0)