Condition Coverage

lib/App/MtAws/ConfigEngine.pm
Criterion Covered Total %
condition 77 93 82.8


and 2 conditions

line l !l condition
542 126 29 $v->{'stop'} && (last VALIDATION)

and 3 conditions

line !l l&&!r l&&r condition
51 27798 3145 3 defined $App::MtAws::ConfigEngine::context->{'messages'}{$message} and not $App::MtAws::ConfigEngine::context->{'messages'}{$message}{'allow_redefine'}
120 0 0 532 $self->{'messages'}{$name} and my $format = $self->{'messages'}{$name}{'format'}
131 1031 1031 828 defined $ref && @$ref > 0
166 34 1185 5 defined $config and defined $config->{$name}
173 1217 0 7 defined $new_encoding and defined $new_encoding->{'value'}
199 3 731 8 @ARGV and $ARGV[0] =~ /\b(help|h)\b/i
202 3 726 5 @ARGV and $ARGV[0] =~ /^\-?\-?version$/i
238 90 0 631 defined $self->{'ConfigOption'} and $cfg_opt = $self->{'options'}{$self->{'ConfigOption'}}
262 3128 17 180 $is_alias and $self->{'deprecated_options'}{$_->{'name'}}
268 3275 39 11 defined $optref->{'value'} and not $optref->{'list'}
3314 0 11 defined $optref->{'value'} and not $optref->{'list'} and $optref->{'source'} eq 'option'
298 3 4 0 defined($command = $self->{'aliasmap'}{$command}) and $self->{'commands'}{$command}
328 5080 11202 6205 not defined $_->{'value'} and defined $_->{'default'}
338 237 1836 1 $self->{$_} and not $self->{'options'}{$self->{$_}}{'seen'}
342 11044 8759 3104 defined $_->{'value'} and $_->{'source'} eq 'option'
19803 3093 11 defined $_->{'value'} and $_->{'source'} eq 'option' and not $_->{'seen'}
380 5503 1937 6193 $v->{'seen'} and defined $v->{'value'}
438 59 18662 0 $App::MtAws::ConfigEngine::context->{'override_validations'} and exists $App::MtAws::ConfigEngine::context->{'override_validations'}{$name}
449 11 6 9 defined $opts{'alias'} and ref $opts{'alias'} eq ref ''
451 14 3 9 defined $opts{'deprecated'} and ref $opts{'deprecated'} eq ref ''
498 8080 36 2 $opt->{'positional'} and ($App::MtAws::ConfigEngine::context->{'positional_level'} ||= 'mandatory') ne 'mandatory'
535 2990 166 10034 defined $opt->{'value'} and not $opt->{'validated'}
571 0 151 75 &present($name) && $App::MtAws::ConfigEngine::context->{'options'}{$name}{'source'} eq 'option'

or 2 conditions

line l !l condition
284 73 92 $self->{'option_list'} ||= []
383 104 98 $dest->{$_} ||= {}
482 40 4 $App::MtAws::ConfigEngine::context->{'cmd_encoding'} || 'UTF-8'
484 0 1 $App::MtAws::ConfigEngine::context->{'cmd_encoding'} || 'UTF-8'
498 4 34 $App::MtAws::ConfigEngine::context->{'positional_level'} ||= 'mandatory'

or 3 conditions

line l !l&&r !l&&!r condition
119 532 0 0 $_->{'format'} || confess('format not defined')
145 2670 0 0 $self->{'cmd_encoding'} || confess()
154 1833 0 0 $self->{'cfg_encoding'} || confess()
298 694 0 7 $self->{'commands'}{$command} or defined($command = $self->{'aliasmap'}{$command}) and $self->{'commands'}{$command}