Wrapper/FactoryBase.pm

filter: Statementstmt 50.0% 6 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 25.0% 1 / 4 Podpod 100% 3 / 3 totaltotal 52.6% 10 / 19 CC 1 SCAR 5.6
CC
1
Cov
50%
create
2.0
search
2.0
find
2.0
CRAP 1.8
« Wrapper.pm ↑ Summary Wrapper/Object.pm »
1 package DBIx::Class::Wrapper::FactoryBase;
2 4 $DBIx::Class::Wrapper::FactoryBase::VERSION = '0.009';
3 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 =head1 NAME
6  
7 DBIx::Class::Wrapper::FactoryBase - A Factory class to inherit from
8  
9 =cut
10  
11 =head2 create
12  
13 Should create a new object given the parameters.
14  
15 =cut
16  
17 0 ▶sub create{
Subroutine create: not called CC=1 SCAR=6.9
Pod documented
18 0 my ($self) = @_;
19 0 confess("Please implement that");
20 }
21  
22 =head2 search
23  
24 Should return an iterable set of objects given the parameters.
25  
26 =cut
27  
28 0 ▶sub search{
Subroutine search: not called CC=1 SCAR=6.9
Pod documented
29 0 my ($self) = @_;
30 0 confess("Please implement that");
31 }
32  
33 =head2 find
34  
35 Just return one or zero object given the parameters.
36  
37 =cut
38  
39 0 ▶sub find{
Subroutine find: not called CC=1 SCAR=6.9
Pod documented
40 0 my ($self) = @_;
41 0 confess("Please implement that");
42 }
43  
44 4 __PACKAGE__->meta->make_immutable();
45 4 1;
« Wrapper.pm ↑ Summary Wrapper/Object.pm »