Branch Coverage

blib/lib/Getopt/Mini.pm
Criterion Covered Total %
branch 26 36 72.2


line true false branch
19 0 2 if (defined $args{'var'}) { }
1 1 elsif (defined $args{'later'}) { }
20 0 0 unless ($args{'var'} =~ /::/)
52 0 4 @_ == 0 ? :
54 1 3 unless delete $opts{'argv'}
56 1 3 unless (@argv)
57 1 3 unless @argv
61 5 11 if ($arg =~ /^-(\w)$/) { }
4 7 elsif ($arg =~ /^-+(.+)/) { }
63 0 5 if ($opts{'hungry_flags'} and defined $argv[0] and not $argv[0] =~ /^-/) { }
73 0 4 if ($last_opt =~ /^(.*)\=(.*)$/) { }
77 3 1 unless ref $hash{$last_opt}
82 3 4 if not $opts{'arrays'} and $last_done || !defined($last_opt)
89 4 8 unless ref $hash{$_} eq 'ARRAY'
90 0 8 if (@{$hash{$_};} == 0) { }
3 5 elsif (@{$hash{$_};} == 1) { }
91 0 0 $opts{'define'} ? :
96 3 0 if (defined wantarray) { }