Branch Coverage

blib/lib/Getopt/Mini.pm
Criterion Covered Total %
branch 29 36 80.5


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