| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package ODS::Table::Column::Integer; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 2 |  |  | 2 |  | 12 | use YAOO; | 
|  | 2 |  |  |  |  | 3 |  | 
|  | 2 |  |  |  |  | 10 |  | 
| 4 |  |  |  |  |  |  |  | 
| 5 |  |  |  |  |  |  | extends 'ODS::Table::Column::Base'; | 
| 6 |  |  |  |  |  |  |  | 
| 7 | 2 |  |  | 2 |  | 539 | use ODS::Utils qw/error/; | 
|  | 2 |  |  |  |  | 3 |  | 
|  | 2 |  |  |  |  | 17 |  | 
| 8 |  |  |  |  |  |  |  | 
| 9 |  |  |  |  |  |  | has auto_increment => rw, isa(boolean); | 
| 10 |  |  |  |  |  |  |  | 
| 11 |  |  |  |  |  |  | sub validation { | 
| 12 | 0 | 0 | 0 | 0 | 0 | 0 | if (ref($_[1]) || ${$_[1]} !~ m/\d+/) { | 
|  | 0 |  |  |  |  | 0 |  | 
| 13 | 0 |  |  |  |  | 0 | croak sprintf "The value passed to the %s column does not match the integer constraint.", | 
| 14 |  |  |  |  |  |  | $_[0]->name; | 
| 15 |  |  |  |  |  |  | } | 
| 16 | 0 |  |  |  |  | 0 | return $_[1]; | 
| 17 |  |  |  |  |  |  | } | 
| 18 |  |  |  |  |  |  |  | 
| 19 | 2 |  |  | 2 | 0 | 39 | sub inflation { return 0 + $_[1]; } | 
| 20 |  |  |  |  |  |  |  | 
| 21 | 0 |  |  | 0 | 0 |  | sub deflation { return 0 + $_[1]; } | 
| 22 |  |  |  |  |  |  |  | 
| 23 |  |  |  |  |  |  | #sub coercion { return $_[1]; } | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  | 1; | 
| 26 |  |  |  |  |  |  |  | 
| 27 |  |  |  |  |  |  | __END__ |