DBomb/Value/Key.pm

filter: Statementstmt 64.5% 20 / 31 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod 0.0% 0 / 2 totaltotal 63.4% 26 / 41 CC 1 SCAR 2.2
CC
1
Cov
65%
init
2.0
mk_where
2.0
BEGIN
1.0
CRAP 1.2
« DBomb/Query/Text.pm ↑ Summary DBomb/GluedUpdate.pm »
1 package DBomb::Value::Key;
2  
3 =head1 NAME
4  
5 DBomb::Value::Key - The values for a DBomb::Meta::Key.
6  
7 =head1 SYNOPSIS
8  
9 =cut
10  
11 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 our $VERSION = '$Revision: 1.8 $';
14  
15 1 ▶use base qw(DBomb::Value);
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use Carp qw(carp croak);
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 ▶use Carp::Assert;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 use Class::MethodMaker
19 1 ▶ 'new_with_init' => 'new',
Subroutine BEGIN: called CC=1 SCAR=0.0
20 'get_set' => [ qw(value_list), ## [ value,...]
21 qw(key_info), ## Key object
22 ],
23 1 ;
24  
25  
26 ## new Key($key_info,[values...])
27 sub init
28 0 ▶{
Subroutine init: not called CC=1 SCAR=6.9
Pod undocumented
29 0 my ($self,$key_info,$value) = @_;
30 0 assert(UNIVERSAL::isa($self,__PACKAGE__));
31 0 assert(@_ == 3, 'parameter count');
32 0 assert(UNIVERSAL::isa($key_info , 'DBomb::Meta::Key'));
33 0 assert(UNIVERSAL::isa($value , 'ARRAY'));
34  
35 0 $self->key_info($key_info);
36 0 $self->value_list($value);
37 }
38  
39  
40 ## mk_where
41 sub mk_where
42 0 ▶{
Subroutine mk_where: not called CC=1 SCAR=6.9
Pod undocumented
43 0 my $self = shift;
44 0 assert(@_ == 0, 'parameter count');
45 0 $self->key_info->where(@{$self->value_list});
46 }
47  
48 1 1;
49 __END__
« DBomb/Query/Text.pm ↑ Summary DBomb/GluedUpdate.pm »