Branch Coverage

blib/lib/Getopt/Function.pm
Criterion Covered Total %
branch 2 48 4.1


line true false branch
235 5 0 unless defined $$opt_hash{$key}
253 0 0 unless $main::option
255 0 0 if ($main::option =~ /^no_/) { }
275 0 2 unless $main::option
344 0 0 if /^\s*[-A-Za-z]{2,}\S*\s*$/
348 0 0 unless $opt
349 0 0 unless length $opt == 1
351 0 0 unless ($meaning)
352 0 0 if $meaning =~ />/
354 0 0 if ($meaning =~ /:/)
356 0 0 unless length $opt == 1
359 0 0 if ($meaning =~ /=/)
360 0 0 unless length $opt == 1
366 0 0 unless defined $optname
372 0 0 if (length $ostr < $opt_indent)
377 0 0 if (length $ostr > $opt_indent)
390 0 0 unless $_
393 0 0 unless $_
422 0 0 if (/^$/)
446 0 0 if $option =~ /^-/
448 0 0 if (length $option == 1) { }
450 0 0 if (/(^|\s)$option([>:=]|$)/)
455 0 0 if (/(^|\s)$option/)
458 0 0 unless $found