ORM/Db/DBIResultSet.pm

filter: Statementstmt 85.7% 12 / 14 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 4 totaltotal 68.0% 17 / 25 CC 2 SCAR 4.1
CC
2
Cov
81%
new
2.0
rows
2.0
BEGIN
1.0
CRAP 1.5
« ORM/Db/DBIResultSetFull.pm ↑ Summary ORM/Datetime.pm »
1 #
2 # DESCRIPTION
3 # PerlORM - Object relational mapper (ORM) for Perl. PerlORM is Perl
4 # library that implements object-relational mapping. Its features are
5 # much similar to those of Java's Hibernate library, but interface is
6 # much different and easier to use.
7 #
8 # AUTHOR
9 # Alexey V. Akimov <akimov_alexey@sourceforge.net>
10 #
11 # COPYRIGHT
12 # Copyright (C) 2005-2006 Alexey V. Akimov
13 #
14 # This library is free software; you can redistribute it and/or
15 # modify it under the terms of the GNU Lesser General Public
16 # License as published by the Free Software Foundation; either
17 # version 2.1 of the License, or (at your option) any later version.
18 #
19 # This library is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 # Lesser General Public License for more details.
23 #
24 # You should have received a copy of the GNU Lesser General Public
25 # License along with this library; if not, write to the Free Software
26 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27 #
28  
29 package ORM::Db::DBIResultSet;
30  
31 4 ▶use base 'ORM::DbResultSet';
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 4 $VERSION = 0.8;
34  
35 sub new
36 41 ▶{
Subroutine new: called CC=2 SCAR=7.0
Pod undocumented
37 41 my $class = shift;
38 41 my %arg = @_;
39 41 my $self = { result=>$arg{result}, tables=>$arg{tables} };
40  
41 41 ▶ return $arg{result} ? bless( $self, $class ) : undef;
Branch: 1 branch
BranchTrueFalseTotal
$arg{'result'} ? : 41 0 41
42 }
43  
44 sub next_row
45 48 ▶{
Subroutine next_row: called CC=1 SCAR=0.0
Pod undocumented
46 48 my $self = shift;
47  
48 48 $self->{result}->fetchrow_hashref;
49 }
50  
51 sub rows
52 0 ▶{
Subroutine rows: not called CC=1 SCAR=6.9
Pod undocumented
53 0 my $self = shift;
54  
55 0 $self->{result}->rows;
56 }
57  
58 sub result_tables
59 1 ▶{
Subroutine result_tables: called CC=1 SCAR=0.0
Pod undocumented
60 1 my $self = shift;
61  
62 1 $self->{tables};
63 }
« ORM/Db/DBIResultSetFull.pm ↑ Summary ORM/Datetime.pm »