Branch Coverage

blib/lib/MouseX/Getopt/Basic.pm
Criterion Covered Total %
branch 42 48 87.5


line true false branch
20 11 98 if ($class->meta->does_role('MouseX::ConfigFromFile'))
29 6 5 if (not defined $configfile) { }
31 3 3 if $cfmeta->has_default
32 2 4 if (ref $configfile eq 'CODE')
37 3 3 if (defined $configfile)
41 0 3 if ($@)
42 0 0 unless $@ =~ /Specified configfile '\Q$configfile\E' does not exist/
51 21 88 @params == 1 ? :
53 0 109 unless ref $constructor_params eq 'HASH'
63 7 92 $config_from_file ? :
66 6 70 if ($processed{'usage'} and $params->{'help_flag'})
74 70 23 $processed{'usage'} ? :
85 87 22 unless $params{'params'}{'argv'}
100 8 101 if @warnings
101 10 99 if $e
113 76 23 defined $usage ? :
164 291 319 unless $_->does('MouseX::Getopt::Meta::Attribute::Trait')
179 319 237 if ($attr->does('MouseX::Getopt::Meta::Attribute::Trait'))
180 226 93 if $attr->has_cmd_flag
181 223 96 if $attr->has_cmd_aliases
198 11 545 if ($attr->name eq 'configfile') { }
545 0 elsif ($attr->has_type_constraint) { }
203 545 0 if ('MouseX::Getopt::OptionTypeMap'->has_option_type($type))
212 93 463 $attr->has_documentation ? :