| 1 | package DBIx::DataFactory::Type::Int; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use Carp; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 2 | ▶ | use base qw(DBIx::DataFactory::Type); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 2 | ▶ | use Smart::Args; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 2 | ▶ | sub type_name { 'Int' } |
|
Subroutine
type_name: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 12 | |||
| 13 | 1 | ▶ | sub make_value { |
|
Subroutine
make_value: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 14 | 1 | args my $class => 'ClassName', | |
| 15 | my $size => 'Int'; | ||
| 16 | 1 | my $max = 10 ** $size - 1; | |
| 17 | 1 | return int rand($max); | |
| 18 | } | ||
| 19 | |||
| 20 | 2 | 1; | |