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
186 2 0 0 length $key == 1 and $raw =~ /^-(\w+)$/
246 0 346 27 $attribute->can('has_cmd_env') and $attribute->has_cmd_env
251 23 1 3 exists $ENV{$cmd_env} and not defined $$return{$attribute->name}
258 2 0 1 $attribute->should_coerce and $type_constraint->has_coercion
290 0 0 94 $attribute->does('MooseX::App::Meta::Role::Attribute::Option') and $attribute->has_cmd_type
305 565 0 1 defined $option_to_attribute{$name} and $option_to_attribute{$name} != $attribute
477 106 0 5 $attribute->should_coerce and $type_constraint->has_coercion
663 1575 252 0 defined $tmp{$short_name}[0] and $tmp{$short_name}[0]{'name'} eq $names{$name}{'name'}
705 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
733 714 686 3141 $attribute->does('MooseX::App::Meta::Role::Attribute::Option') and $attribute->has_cmd_type
811 0 28 1 $command_meta_class->can('command_usage') and $command_meta_class->command_usage_predicate
843 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
935 0 0 25 $class->can('meta') and $class->DOES('MooseX::App::Role::Common')

or 2 conditions

line l !l condition
364 5 9 $$match{$attribute->name} ||= []
651 72 0 &max(map({length $_;} keys %names)) // 0
660 252 1575 $tmp{$short_name} ||= []
724 614 1 $types ||= ['option', 'proto']
752 35 0 $headline ||= 'options:'
775 35 0 $headline ||= 'parameter:'
944 19 6 $command_description ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
164 68 0 0 $metaclass ||= $self
232 33 0 34 $self->app_strict or $metaclass->command_strict
261 1 0 0 $coercion->coerce($value) // $value
285 74 0 0 $metaclass ||= $self
447 0 5 0 $value->{$1} ||= $2
480 5 0 0 $coercion->coerce($value) // $value
606 74 0 0 $metaclass ||= $self
616 20 8 301 $type_constraint->is_a_type_of('ArrayRef') or $type_constraint->is_a_type_of('HashRef')
624 144 6 197 $bool || $attribute->cmd_count
701 67 0 0 $command_meta ||= $self
723 614 1 0 $metaclass ||= $self
737 593 1356 1192 $types eq 'all' or $attribute->cmd_type ~~ $types
753 35 0 0 $metaclass ||= $self
776 35 0 0 $metaclass ||= $self
810 23 6 0 $command_meta_class ||= $self
842 36 0 0 $command_meta_class ||= $self
875 29 0 0 $command_meta_class ||= $self
883 29 114 2 $command eq $command_name or not $command =~ /^\Q$command_name\E\s(.+)/
894 29 0 0 $command_meta_class ||= $self