Branch Coverage

blib/lib/Rose/HTML/Form/Field/Numeric.pm
Criterion Covered Total %
branch 26 30 86.6


line true false branch
26 3 2 if (not @_ or $_[0]) { }
2 0 elsif (@_) { }
41 2 2 if (not @_ or $_[0]) { }
2 0 elsif (@_) { }
58 161 11 if (defined $value)
62 158 3 unless s/-\s+/-/
66 157 15 defined $value && $value =~ /\S/ ? :
77 1 50 unless $ok
80 1 49 unless defined $value and length $value
85 0 16 unless $self->error_label
87 5 44 unless ($value =~ /$Match/)
89 0 5 if (defined $min and $min >= 0) { }
101 6 38 if (defined $min and $value < $min)
103 4 2 if ($min == 0) { }
114 4 34 if (defined $max and $value > $max)