line |
true |
false |
branch |
28
|
0 |
2 |
if ($options->{'help'}) { } |
|
0 |
2 |
elsif ($self->{'name'} ne '') { } |
39
|
1 |
1 |
if $options->{'opts'} |
49
|
0 |
1 |
unless ref $options |
62
|
2 |
1 |
if ($opt_type) { } |
63
|
0 |
2 |
unless $opt_type eq 'HASH' |
80
|
0 |
3 |
unless $accepted{$value} |
84
|
2 |
1 |
if ($value eq 'type') { } |
|
0 |
1 |
elsif ($value eq 'condition' and !$opt_ref || $opt_ref ne 'CODE') { } |
|
0 |
1 |
elsif ($value eq 'help' and $opt_ref) { } |
|
0 |
1 |
elsif ($value eq 'aliases' and ($opt_ref and $opt_ref ne 'ARRAY')) { } |
|
0 |
1 |
elsif ($value eq 'to_stash' and ($opt_ref and $opt_ref ne 'ARRAY')) { } |
|
0 |
1 |
elsif ($value eq 'required') { } |
|
0 |
1 |
elsif ($value eq 'default') { } |
|
0 |
1 |
elsif ($value eq 'error_msg' and $opt_ref) { } |
|
0 |
1 |
elsif ($value eq 'conflicts_with' and ($opt_ref and $opt_ref ne 'ARRAY')) { } |
86
|
0 |
2 |
unless $opt_ref or $TYPES{lc $options->{$value}} |
101
|
0 |
0 |
if ($accepted{'default'}) { } |
109
|
0 |
0 |
if ($accepted{'required'}) { } |
145
|
0 |
0 |
if (keys %{$$self{'opts'};} > 0) { } |
153
|
0 |
0 |
unless (defined $opt_val) |
155
|
0 |
0 |
if (defined $opt->{'default'}) { } |
|
0 |
0 |
elsif (defined $opt->{'arguments'}) { } |
167
|
0 |
0 |
defined $self->{'options'}{$opt_name} ? : |
174
|
0 |
0 |
if ($opt->{'type'} and not $TYPES{$opt->{'type'}}($opt_val)) |
179
|
0 |
0 |
if ($opt->{'condition'} and not $opt->{'condition'}->($opt_val)) |
181
|
0 |
0 |
defined $opt->{'error_msg'} ? : |
192
|
0 |
0 |
unless (defined $opt_val) |
194
|
0 |
0 |
defined $self->{'options'}{$opt_name} ? : |
207
|
0 |
0 |
if exists $self->{'opts'}{$opt} |
214
|
0 |
0 |
unless ref $aliases |
218
|
0 |
0 |
if $alias and $opt eq $alias |
228
|
0 |
0 |
unless scalar keys %{$$self{'opts'};} |
230
|
0 |
0 |
exists $self->{'opts'}{$opt} ? : |