Condition Coverage

blib/lib/Getopt/Long/Descriptive.pm
Criterion Covered Total %
condition 38 63 60.3


and 3 conditions

line !l l&&!r l&&r condition
365 0 30 1 ref $_[-1] && ref $_[-1] eq 'HASH'
426 87 4 1 $opt->{'constraint'}{'shortcircuit'} and exists $opt->{'constraint'}{'default'}
576 20 0 11 $CONSTRAINT{$ct} and ref $CONSTRAINT{$ct} eq "CODE"
601 24 48 5 not defined $arg{'params'}{$arg{'name'}} and $pvspec{'default'}
48 5 0 not defined $arg{'params'}{$arg{'name'}} and $pvspec{'default'} and $spec->{'implies'}
628 0 0 3 builtin::blessed($error) and $error->isa("Getopt::Long::Descriptive::_PV_Error")
688 4 0 1 exists $param->{$key} and $param->{$key} ne $val
4 1 0 exists $param->{$key} and $param->{$key} ne $val and grep {$_ eq $key;} @{$$rest{"-given_keys"};}
815 2 0 0 $p->{'negatable'} and length $name > 1
818 2 0 0 $p->{'takes_value'} and defined $p->{'completion'}
861 2 0 0 $p->{'negatable'} and length $name > 1

or 2 conditions

line l !l condition
319 106 6 $opt->[0] || ''
48 64 $opt->[2] || {}
106 0 $opt->[0] || ''
344 84 0 substr($str, $len) // ""
513 10 108 $Getopt::Long::Descriptive::b->{'constraint'}{'shortcircuit'} || 0
0 118 $Getopt::Long::Descriptive::a->{'constraint'}{'shortcircuit'} || 0
577 0 11 $pvspec{'callbacks'} ||= {}
735 4 0 $opt->{'desc'} // ""
845 2 0 $p->{'desc'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
435 1 0 30 $arg->{'getopt_conf'} or $arg->{'getopt'}
484 44 0 0 $replace{$1} // Carp::croak("unknown sequence %$1 in first argument to describe_options")
528 29 0 45 defined $new or exists $return{$name}
735 0 0 4 $constraint->{'hidden'} or ($opt->{'desc'} // "") eq "hidden"