Branch Coverage

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


line true false branch
32 82 773 unless (exists $Getopt::Kingpin::Base::types->{$type})
35 71 11 unless ($module->can('set_value'))
36 2 69 unless eval "require $module"
44 424 429 if ($type eq 'Bool')
45 247 177 unless (defined $self->_default)
50 62 791 if ($type =~ /List$/) { }
55 736 elsif ($type =~ /Hash$/) { }
66 219 238 defined $_[0]->value ? :
105 5 1 if (exists $ENV{$envar_name})
123 32 311 if ($self->is_cumulative) { }
31 280 elsif ($self->is_hash) { }
2 278 elsif ($self->_defined) { }
125 17 15 if ($self->_defined)
129 2 30 if (scalar @ret > 1)
137 18 13 if ($self->_defined)
140 16 15 ref $_[0] eq 'ARRAY' ? :
142 2 29 if (scalar @ret > 1)
154 13 265 if (scalar @ret > 1)