blib/lib/Langertha/Role/Seed.pm

filter: Statementstmt 91.6% 11 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 88.2% 15 / 17 CC 1 SCAR 2.2
CC
1
Cov
92%
random_seed
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Langertha/Engine/Replicate.pm ↑ Summary blib/lib/Langertha/Output.pm »
1 package Langertha::Role::Seed;
2 # ABSTRACT: Role for an engine that can set a seed
3 57 our $VERSION = '0.505';
4 57 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 57 ▶use Carp qw( croak );
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 57 has randomize_seed => (
8 is => 'ro',
9 lazy_build => 1,
10 );
11 80 ▶sub _build_randomize_seed { 0 }
Subroutine _build_randomize_seed: called CC=1 SCAR=0.0
12  
13  
14 57 has seed => (
15 is => 'ro',
16 predicate => 'has_seed',
17 );
18  
19  
20 0 ▶sub random_seed {
Subroutine random_seed: not called CC=1 SCAR=6.9
Pod documented
21 0 return sprintf("%u",rand(100_000_000));
22 }
23  
24  
25  
26 57 1;
27  
28 __END__
« blib/lib/Langertha/Engine/Replicate.pm ↑ Summary blib/lib/Langertha/Output.pm »