lib/CGI/ValidOp/Check/length.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 20 | 22 | 90.9 |
line | true | false | branch |
---|---|---|---|
15 | 0 | 22 | unless defined $value |
20 | 3 | 19 | unless $min or $max |
24 | 6 | 13 | if ($min and not defined $max or $min and $min == $max) { } |
3 | 10 | elsif ($min and defined $max and $max == 0) { } | |
1 | 9 | elsif ($min and defined $max and $min > $max) { } | |
3 | 6 | elsif ($min == 0 and $max) { } | |
6 | 0 | elsif ($min and $max) { } | |
25 | 2 | 4 | if $value =~ /^.{$min}$/ |
30 | 2 | 1 | if $value =~ /^.{$min,}$/ |
39 | 2 | 1 | if $value =~ /^.{$min,$max}$/ |
44 | 4 | 2 | if $value =~ /^.{$min,$max}$/ |