Condition Coverage

blib/lib/CLI/Helpers.pm
Criterion Covered Total %
condition 25 96 26.0


and 3 conditions

line !l l&&!r l&&r condition
112 2 0 5 defined $opt_ref and XXX
176 7 0 0 exists $opts->{'syslog-tag'} && length $opts->{'syslog-tag'}
7 0 0 exists $opts->{'syslog-facility'} && length $opts->{'syslog-facility'}
282 0 0 0 defined $color and $DEF{'COLOR'}
303 16 0 0 exists $opts->{'color'} && defined $opts->{'color'}
309 16 0 0 $DEF{'TAGS'} and exists $opts->{'tag'}
317 16 0 0 scalar(@input) % 2 == 0 && (exists $opts->{'kv'} && $opts->{'kv'} == 1)
342 16 0 0 defined $DATA_HANDLE and $opts->{'data'}
16 0 0 $DEF{'SYSLOG'} and not $opts->{'no_syslog'}
429 0 7 0 XXX and defined $_[1]
7 0 0 XXX and defined $_[1] and XXX
460 0 0 0 defined $answer and exists $_Confirm_Valid->{$answer}
489 0 0 0 defined $text and not defined $error
510 0 0 0 exists $args{'default'} and length $text == 0
551 0 0 0 defined $choice and exists $ref{$choice}

or 2 conditions

line l !l condition
176 1 6 $opts->{'debug'} || 0
0 7 $opts->{'debug-class'} || 'main'
4 3 $opts->{'verbose'} || 0
0 7 $opts->{'quiet'} || 0
0 7 $opts->{'syslog'} || 0
0 7 $opts->{'syslog-debug'} || 0
0 7 $opts->{'nopaste'} || 0
311 0 0 $TAGS{$opts->{'tag'}} ||= 0
456 0 0 $_Confirm_Valid ||= {'y', '1', 'yes', '1', 'n', '0', 'no', '0'}
541 0 0 $TERM->OUT || \*STDOUT
566 0 0 $prompt ||= 'Password: '
589 0 0 $args{'validate'} ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
178 0 0 7 $opts->{'color'} // git_color_check()
272 0 0 0 $stdout =~ /auto/ or $stdout =~ /true/
324 0 0 0 $v ||= $DEF{'KV_FORMAT'} eq ': ' ? '~' : ''
333 16 0 0 not $DEF{'QUIET'} or $opts->{'IMPORTANT'}
411 0 1 3 lc $DEF{'DEBUG_CLASS'} eq 'all' or $package eq $DEF{'DEBUG_CLASS'}
415 0 1 0 $opts->{'no_syslog'} //= !$DEF{'SYSLOG_DEBUG'}
455 0 0 0 $TERM ||= 'Term::ReadLine'->new($0)
481 0 0 0 $TERM ||= 'Term::ReadLine'->new($0)
532 0 0 0 $TERM ||= 'Term::ReadLine'->new($0)