Branch Coverage

blib/lib/DBIx/Class/Numeric.pm
Criterion Covered Total %
branch 23 26 88.4


line true false branch
147 10 14 if ref $col eq 'HASH'
150 10 4 if (ref $cols[$count + 1] eq 'HASH')
186 2 5 if $existing
228 2 0 if (my $def = $self->_numeric_col_def)
230 1 5 unless $def->{$column} and %{$def->{$column};}
234 0 5 unless defined $val
250 17 0 if ($def)
251 1 16 if (defined $def->{$column}{'min_value'} and $new_val < $def->{$column}{'min_value'})
254 3 14 if (defined $def->{$column}{'max_value'} and $new_val > $def->{$column}{'max_value'})
257 6 11 if (defined $def->{$column}{'upper_bound_col'})
259 3 3 if $new_val > $max_val
261 6 11 if (defined $def->{$column}{'lower_bound_col'})
263 3 3 if $new_val < $min_val