Caa/DitherRandom.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 4 totaltotal 81.8% 18 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
new
1.0
CRAP 1.0
« Caa/DitherNone.pm ↑ Summary Caa/DriverTest.pm »
1 package Image::Caa::DitherRandom;
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
6 2 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
7 2 my ($class, $args) = @_;
8
9 2 my $self = bless {}, $class;
10
11 2 return $self;
12 }
13
14 2 ▶sub init {
Subroutine init: called CC=1 SCAR=0.0
Pod undocumented
15 2 srand(time() ^ ($$ + ($$ << 15)));
16 }
17
18 16 ▶sub get {
Subroutine get: called CC=1 SCAR=0.0
Pod undocumented
19 16 return int(rand(0xff));
20 }
21
22 4 ▶sub increment {
Subroutine increment: called CC=1 SCAR=0.0
Pod undocumented
23 }
24
25
26 2 1;
« Caa/DitherNone.pm ↑ Summary Caa/DriverTest.pm »