DeploymentHandler/DeployMethod/SQL/Translator/Deprecated.pm

filter: Statementstmt 68.0% 17 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 4 / 6 Podpod n/a totaltotal 67.7% 21 / 31 CC 1 SCAR 2.9
CC
1
Cov
68%
_ddl_schema_up_produce_filename
2.0
_ddl_schema_up_consume_filenames
2.0
BEGIN
1.0
CRAP 1.3
« DeploymentHandler/LogImporter.pm ↑ Summary DeploymentHandler/VersionStorage/Deprecated.pm »
1 package DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator::Deprecated;
2 2 $DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator::Deprecated::VERSION = '0.002235';
3 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # ABSTRACT: (DEPRECATED) Use this if you are stuck in the past
6  
7 2 ▶use File::Spec::Functions;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 extends 'DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator';
10  
11 2 ▶sub _ddl_schema_consume_filenames {
Subroutine _ddl_schema_consume_filenames: called CC=1 SCAR=0.0
12 2 my ($self, $type, $version) = @_;
13 2 return [$self->_ddl_schema_produce_filename($type, $version)]
14 }
15  
16 7 ▶sub _ddl_schema_produce_filename {
Subroutine _ddl_schema_produce_filename: called CC=1 SCAR=0.0
17 7 my ($self, $type, $version) = @_;
18 7 my $filename = ref $self->schema;
19 7 $filename =~ s/::/-/g;
20  
21 7 $filename = catfile(
22 $self->script_directory, "$filename-$version-$type.sql"
23 );
24  
25 7 return $filename;
26 }
27  
28 0 ▶sub _ddl_schema_up_produce_filename {
Subroutine _ddl_schema_up_produce_filename: not called CC=1 SCAR=6.9
29 0 my ($self, $type, $versions, $dir) = @_;
30 0 my $filename = ref $self->schema;
31 0 $filename =~ s/::/-/g;
32  
33 $filename = catfile(
34 0 $self->script_directory, "$filename-" . join( q(-), @{$versions} ) . "-$type.sql"
35 );
36  
37 0 return $filename;
38 }
39  
40 0 ▶sub _ddl_schema_up_consume_filenames {
Subroutine _ddl_schema_up_consume_filenames: not called CC=1 SCAR=6.9
41 0 my ($self, $type, $versions) = @_;
42 0 return [$self->_ddl_schema_up_produce_filename($type, $versions)]
43 }
44  
45 2 __PACKAGE__->meta->make_immutable;
46  
47 2 1;
48  
49 # vim: ts=2 sw=2 expandtab
50  
51 __END__
« DeploymentHandler/LogImporter.pm ↑ Summary DeploymentHandler/VersionStorage/Deprecated.pm »