lib/Data/Valve/Bucket.pm

filter: Statementstmt 40.0% 4 / 10 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 33.3% 1 / 3 Podpod 100% 2 / 2 totaltotal 38.8% 7 / 18 CC 2 SCAR 13.2
CC
2
Cov
33%
new
6.0
deserialize
2.0
BEGIN
1.0
CRAP 3.8
« lib/Data/Valve/BucketStore/Memory.pm ↑ Summary Valve.xs »
1 # $Id: /mirror/coderepos/lang/perl/Data-Valve/trunk/lib/Data/Valve/Bucket.pm 66548 2008-07-22T00:38:42.978696Z daisuke $
2  
3 package Data::Valve::Bucket;
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod documented
7 0 my ($class, %args) = @_;
8 0 ▶ $args{strict_interval} ||= 0;
Condition0%0/2
$args{"strict_interval"} ||= 0
l!l
00
MC/DC0%0/1
$args{"strict_interval"} ||= 0
$args{"strict_interval"}
Truth table0%0/2
A
A= $args{"strict_interval"}
Aresult
11
00
9 0 my $self = bless create($args{interval}, $args{max_items}, $args{strict_interval}), $class;
10
11 0 return $self;
12 }
13  
14 0 ▶sub deserialize {
Subroutine deserialize: not called CC=1 SCAR=6.9
Pod documented
15 0 my ($class, @args) = @_;
16 0 return bless _deserialize(@args), $class;
17 }
18  
19 1 1;
20  
21 __END__
« lib/Data/Valve/BucketStore/Memory.pm ↑ Summary Valve.xs »