blib/lib/DBIO/DeploymentHandler/VersionStorage/Standard/VersionResultSet.pm

filter: Statementstmt 100% 17 / 17 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 totaltotal 100% 26 / 26 CC 2 SCAR 2.9
CC
2
Cov
100%
version_storage_is_installed
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/DBIO/Test/Schema/CD.pm ↑ Summary blib/lib/DBIO/Test/MooseSchema/ResultSet/Artist.pm »
1 package DBIO::DeploymentHandler::VersionStorage::Standard::VersionResultSet;
2 # ABSTRACT: The typical way to query versions in the database
3  
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 our $VERSION = '0.900007';
8  
9 3 ▶use base 'DBIO::ResultSet';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11  
12 7 ▶sub version_storage_is_installed {
Subroutine version_storage_is_installed: called CC=2 SCAR=6.9
Pod documented
13 7 my $self = shift;
14 7 ▶ eval { $self->count; 1 } ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
eval { do { $self->count; 1 } } ? : 4 3 7
15 }
16  
17  
18 5 ▶sub database_version {
Subroutine database_version: called CC=1 SCAR=0.0
Pod documented
19 5 my $self = shift;
20  
21 5 $self
22 ->search(undef, { order_by => { -desc => 'id' }, rows => 1 })
23 ->get_column('version')
24 ->next;
25 }
26  
27 3 1;
28  
29 # vim: ts=2 sw=2 expandtab
30  
31 __END__
« blib/lib/DBIO/Test/Schema/CD.pm ↑ Summary blib/lib/DBIO/Test/MooseSchema/ResultSet/Artist.pm »