Condition Coverage

blib/lib/Getopt/Yath/Instance.pm
Criterion Covered Total %
condition 55 124 44.3


and 3 conditions

line !l l&&!r l&&r condition
149 0 0 0 $self->{'options_groups_cache'} and $self->check_cache
171 0 0 0 $self->{'options_map_cache'} and $self->check_cache
202 0 0 64 $args and ref $args eq "ARRAY"
209 0 0 64 $stops and ref $stops eq "ARRAY"
302 12 11 10 $opt->allows_shortval and $set || $other
330 43 17 0 $set and not defined $arg
347 41 16 1 $set and not $opt->allows_arg
368 31 5 9 $opt->requires_arg and not $set
379 44 0 0 ref $arg and @$arg > 1
44 0 0 ref $arg and @$arg > 1 and not $opt->allows_list
423 0 375 72 $state->{'cleared'} and $state->{'cleared'}{$group_name}
375 62 10 $state->{'cleared'} and $state->{'cleared'}{$group_name} and $state->{'cleared'}{$group_name}{$field_name}
431 12 0 0 $set->{'applicable'} and not $set->{'applicable'}->($set, $self, $settings)

or 2 conditions

line l !l condition
34 0 1 $self->{'options'} //= []
35 0 1 $self->{'posts'} //= {}
36 0 1 $self->{'included'} //= {}
38 0 1 $self->{'category_sort_map'} //= {"NO CATEGORY - FIX ME", 99999}
58 4 0 $weight //= 0
71 0 0 $self->included->{ref $other} //= []
75 0 0 $other_include->{$key} // []
100 15 0 $self->{'options'} //= []
119 0 0 $self->{'cache_key'} //= 0
207 1 63 $params{'stops'} // []
208 0 64 $params{'groups'} // {}
211 64 0 $self->options // []
221 0 64 $params{'env'} // {}
0 64 $params{'cleared'} // {}
0 64 $params{'modules'} // {}
441 12 435 $opt->clear_env_vars // []
462 0 0 $opt->trace // ["", "unknown", "n/a"]
501 2 0 $self->options // []
503 2 0 $format //= "UNDEFINED"
543 0 74 $$map{$a->category} || 0
544 0 74 $$map{$b->category} || 0
555 0 74 $a->prefix || ''
0 74 $b->prefix || ''

or 3 conditions

line l !l&&r !l&&!r condition
81 0 0 0 $want{$_->title} or $want{$_->field}
206 0 64 0 $params{'settings'} // "Getopt::Yath::Settings"->new({})
246 0 64 0 $params{'invalid_opt_callback'} // sub { die "'$_[0]' is not a valid option.\n"; }
302 8 2 11 $set || $other
350 0 57 0 $delta //= $opt->forms->{$first}
498 0 2 0 $params{'color'} //= -t STDOUT
523 2 0 26 not $cat or $opt->category ne $cat
548 0 0 0 $ret ||= $a->group cmp $b->group
549 0 0 0 $ret ||= $a->category cmp $b->category
552 0 0 74 $ret ||= $a->category cmp $b->category
553 0 0 74 $ret ||= $a->group cmp $b->group
555 0 0 74 $ret ||= ($a->prefix || '') cmp ($b->prefix || '')
556 0 74 0 $ret ||= $a->name cmp $b->name