blib/lib/DBIO/SQLite/Result.pm

filter: Statementstmt 100% 22 / 22 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 totaltotal 96.7% 30 / 31 CC 2 SCAR 2.9
CC
2
Cov
96%
sqlite_index
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/DBIO/SQLite/JSON/Op.pm ↑ Summary blib/lib/DBIO/Shortcut/sqlite.pm »
1 package DBIO::SQLite::Result;
2 # ABSTRACT: SQLite-specific Result component for DBIO
3  
4 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 9 our $VERSION = '0.900007';
8  
9 9 ▶use base 'DBIO::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 9 __PACKAGE__->mk_classdata('_sqlite_indexes' => {});
12  
13  
14  
15 36 ▶sub sqlite_index {
Subroutine sqlite_index: called CC=2 SCAR=7.0
Pod documented
16 36 my ($class, $name, $def) = @_;
17 36 ▶ if ($def) {
Branch: 1 branch
BranchTrueFalseTotal
if ($def) 36 0 36
18 36 my $indexes = { %{ $class->_sqlite_indexes } };
19 36 $indexes->{$name} = $def;
20 36 $class->_sqlite_indexes($indexes);
21 }
22 36 return $class->_sqlite_indexes->{$name};
23 }
24  
25  
26 33 ▶sub sqlite_indexes {
Subroutine sqlite_indexes: called CC=1 SCAR=0.0
Pod documented
27 33 my ($class) = @_;
28 33 return { %{ $class->_sqlite_indexes } };
29 }
30  
31  
32 9 1;
33  
34 __END__
« blib/lib/DBIO/SQLite/JSON/Op.pm ↑ Summary blib/lib/DBIO/Shortcut/sqlite.pm »