blib/lib/Getopt/Alt/Option.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 44 | 48 | 91.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
103 | 1 | 539 | 7 | @params == 1 and ref $params[0] |
181 | 298 | 197 | 48 | $params{'type'} && $params{'ref'} |
205 | 1 | 5 | 24 | $arg_data and not $self->nullable |
206 | 2 | 26 | 6 | $args->[0] and $args->[0] =~ /^-/msx |
28 | 6 | 0 | $args->[0] and $args->[0] =~ /^-/msx and not $self->type eq 'Int' || $self->type eq 'Num' | |
230 | 54 | 6 | 4 | $self->ref and $self->ref eq 'HashRef' |
237 | 53 | 9 | 2 | $self->nullable and !defined($arg_data) || $arg_data eq '' |
250 | 56 | 3 | 1 | $self->values and not grep({$value eq $_;} @{$self->values;}) |
275 | 4 | 2 | 2 | $long && $long =~ /^no-/msx |
line | l | !l | condition |
---|---|---|---|
261 | 3 | 3 | $self->value || [] |
265 | 1 | 3 | $self->value || {} |
272 | 3 | 5 | $self->value || 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
205 | 12 | 25 | 30 | not defined $arg_data or length $arg_data == 0 |
206 | 32 | 2 | 3 | defined $args->[0] || $self->nullable |
4 | 2 | 0 | $self->type eq 'Int' || $self->type eq 'Num' | |
3 | 0 | 34 | not defined $args->[0] || $self->nullable or $args->[0] and $args->[0] =~ /^-/msx and not $self->type eq 'Int' || $self->type eq 'Num' | |
237 | 2 | 0 | 9 | !defined($arg_data) || $arg_data eq '' |