Branch Coverage

blib/lib/Getopt/Kingpin/Base.pm
Criterion Covered Total %
branch 36 36 100.0


line true false branch
35 82 773 unless (exists $Getopt::Kingpin::Base::types->{$type})
38 71 11 unless ($module->can("set_value"))
39 2 69 unless eval "require $module"
47 424 429 if ($type eq "Bool")
48 247 177 unless (defined $self->_default)
53 62 791 if ($type =~ /List$/) { }
55 736 elsif ($type =~ /Hash$/) { }
76 219 238 defined $_[0]->value ? :
116 5 1 if (exists $ENV{$envar_name})
134 32 311 if ($self->is_cumulative) { }
31 280 elsif ($self->is_hash) { }
2 278 elsif ($self->_defined) { }
136 17 15 if ($self->_defined)
140 2 30 if (scalar @ret > 1)
148 18 13 if ($self->_defined)
151 16 15 ref $_[0] eq 'ARRAY' ? :
153 2 29 if (scalar @ret > 1)
165 13 265 if (scalar @ret > 1)