blib/lib/Finance/Random/Price.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 18 | 20 | 90.0 |
line | true | false | branch |
---|---|---|---|
32 | 1 | 11 | unless (defined $self->{'min'}) |
35 | 1 | 10 | unless ($self->{'min'} =~ /^\-?\d+\.?\d*$/ms) |
38 | 1 | 9 | unless (defined $self->{'max'}) |
41 | 1 | 8 | unless ($self->{'max'} =~ /^\-?\d+\.?\d*$/ms) |
44 | 1 | 7 | if ($self->{'max'} < $self->{'min'}) |
47 | 3 | 4 | if (defined $self->{'decimal_num'}) |
48 | 1 | 2 | unless ($self->{'decimal_num'} =~ /^\-?\d+$/ms) |
51 | 1 | 1 | if ($self->{'decimal_num'} < 0) |
54 | 1 | 0 | if ($self->{'decimal_num'} > 2) |
66 | 0 | 3 | $self->{'decimal_num'} ? : |