blib/lib/AutoSQL/DBObject.pm untested

filter: Statementstmt 0.0% 0 / 24 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 6 MC/DCmcdc 0.0% 0 / 4 Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 44 CC 2 SCAR 11.5
CC
2
Cov
0%
dbID
6.0
_initialize
2.0
BEGIN
2.0
CRAP 3.1
1 package AutoSQL::DBObject;
2 use strict;
3 use vars qw(@ISA);
4 use AutoCode::Root;
5 @ISA=qw(AutoCode::Root);
6 use AutoCode::AccessorMaker('$'=>[qw(adaptor)]);
7  
8 sub _initialize {
9 my ($self, @args)=@_;
10 $self->SUPER::_initialize(@args);
11 my ($dbid, $adaptor)=
12 $self->_rearrange([qw(DBID ADAPTOR)], @args);
13  
14 defined $dbid and $self->dbID($dbid);
15 defined $adaptor and $self->adaptor($adaptor);
16  
17 }
18  
19 sub dbID {
20 my $self = shift;
21 return $self->{_dbID} = shift if @_;
22 return $self->{_dbID};
23 }
24  
25 1;