Condition Coverage

blib/lib/MooseX/App/Meta/Role/Class/Base.pm
Criterion Covered Total %
condition 72 116 62.0


and 3 conditions

line !l l&&!r l&&r condition
189 2 0 0 length $key == 1 and $raw =~ /^-(\w+)$/
249 0 346 27 $attribute->can('has_cmd_env') and $attribute->has_cmd_env
254 23 1 3 exists $ENV{$cmd_env} and not defined $$return{$attribute->name}
261 2 0 1 $attribute->should_coerce and $type_constraint->has_coercion
293 0 0 94 $attribute->does('MooseX::App::Meta::Role::Attribute::Option') and $attribute->has_cmd_type
308 565 0 1 defined $option_to_attribute{$name} and $option_to_attribute{$name} != $attribute
480 106 0 1 $attribute->should_coerce and $type_constraint->has_coercion
666 1575 252 0 defined $tmp{$short_name}[0] and $tmp{$short_name}[0]{'name'} eq $names{$name}{'name'}
708 320 43 10 $attribute->is_required and not exists $$params{$attribute->name}
363 3 7 $attribute->is_required and not exists $$params{$attribute->name} and not $attribute->has_default
736 728 696 3194 $attribute->does('MooseX::App::Meta::Role::Attribute::Option') and $attribute->has_cmd_type
814 0 28 1 $command_meta_class->can('command_usage') and $command_meta_class->command_usage_predicate
846 0 23 13 $command_meta_class->can('command_long_description') and $command_meta_class->command_long_description_predicate
0 22 1 $command_meta_class->can('command_short_description') and $command_meta_class->command_short_description_predicate
938 0 0 25 $class->can('meta') and $class->DOES('MooseX::App::Role::Common')

or 2 conditions

line l !l condition
367 5 9 $$match{$attribute->name} ||= []
654 72 0 &max(map({length $_;} keys %names)) // 0
663 252 1575 $tmp{$short_name} ||= []
727 628 1 $types ||= ['option', 'proto']
755 35 0 $headline ||= 'options:'
778 35 0 $headline ||= 'parameter:'
947 19 6 $command_description ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
167 68 0 0 $metaclass ||= $self
235 33 0 34 $self->app_strict or $metaclass->command_strict
264 1 0 0 $coercion->coerce($value) // $value
288 74 0 0 $metaclass ||= $self
450 0 5 0 $value->{$1} ||= $2
483 1 0 0 $coercion->coerce($value) // $value
609 74 0 0 $metaclass ||= $self
619 20 8 281 $type_constraint->is_a_type_of('ArrayRef') or $type_constraint->is_a_type_of('HashRef')
627 144 6 197 $bool || $attribute->cmd_count
704 67 0 0 $command_meta ||= $self
726 628 1 0 $metaclass ||= $self
740 646 1356 1192 $types eq 'all' or $attribute->cmd_type ~~ $types
756 35 0 0 $metaclass ||= $self
779 35 0 0 $metaclass ||= $self
813 23 6 0 $command_meta_class ||= $self
845 36 0 0 $command_meta_class ||= $self
878 29 0 0 $command_meta_class ||= $self
886 29 114 2 $command eq $command_name or not $command =~ /^\Q$command_name\E\s(.+)/
897 29 0 0 $command_meta_class ||= $self