Object/Metadata/Column/Decimal.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 9 MC/DCmcdc 0.0% 0 / 6 Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 40 CC 2 SCAR 12.0
CC
2
Cov
0%
should_inline_value
6.0
type
2.0
BEGIN
2.0
CRAP 3.3
1 package Rose::DB::Object::Metadata::Column::Decimal;
2  
3 use strict;
4  
5 use Rose::DB::Object::Metadata::Column::Numeric;
6 our @ISA = qw(Rose::DB::Object::Metadata::Column::Numeric);
7  
8 our $VERSION = '0.788';
9  
10 sub type { 'decimal' }
11  
12 sub should_inline_value
13 {
14 my($self, $db, $value) = @_;
15 no warnings 'uninitialized';
16 return (($db->validate_numeric_keyword($value) && $db->should_inline_numeric_keyword($value)) ||
17 ($db->keyword_function_calls && $value =~ /^\w+\(.*\)$/)) ? 1 : 0;
18 }
19  
20 1;
21  
22 __END__