DeploymentHandler/VersionStorage/Standard/VersionResultSet.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 2 / 2 totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« DeploymentHandler/VersionStorage/Deprecated/VersionResultSet.pm ↑ Summary
1 package DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResultSet;
2 10 $DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResultSet::VERSION = '0.002235';
3 # ABSTRACT: Predefined searches to find what you want from the version storage
4  
5 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 10 ▶use parent 'DBIx::Class::ResultSet';
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 10 ▶use Try::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 22 ▶sub version_storage_is_installed {
Subroutine version_storage_is_installed: called CC=1 SCAR=0.0
Pod documented
13 22 my $self = shift;
14 22 ▶ try { $self->count; 1 } catch { undef }
Subroutine __ANON__: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
15 22 }
16  
17 31 ▶sub database_version {
Subroutine database_version: called CC=1 SCAR=0.0
Pod documented
18 31 my $self = shift;
19 31 $self->search(undef, {
20 order_by => { -desc => 'id' },
21 rows => 1
22 })->get_column('version')->next;
23 }
24  
25 10 1;
26  
27 # vim: ts=2 sw=2 expandtab
28  
29 __END__
« DeploymentHandler/VersionStorage/Deprecated/VersionResultSet.pm ↑ Summary