blib/lib/DBIO/Test/Schema/CustomSql.pm

filter: Statementstmt 92.8% 13 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 84.2% 16 / 19 CC 1 SCAR 2.2
CC
1
Cov
93%
sqlt_deploy_hook
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/DBIO/Test/Namespace/RtBug41083/ResultSet_A/A.pm ↑ Summary blib/lib/DBIO/Test/Schema/TreeLike.pm »
1 package DBIO::Test::Schema::CustomSql;
2 # ABSTRACT: Test result class using a custom SQL query as source
3  
4 256 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 256 our $VERSION = '0.900007';
7  
8 256 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 256 ▶use base qw/DBIO::Test::Schema::Artist/;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 256 __PACKAGE__->table('dummy');
13  
14 256 __PACKAGE__->result_source_instance->name(\<<SQL);
15 ( SELECT a.*, cd.cdid AS cdid, cd.title AS title, cd.year AS year
16 FROM artist a
17 JOIN cd ON cd.artist = a.artistid
18 WHERE cd.year = ?)
19 SQL
20  
21 0 ▶sub sqlt_deploy_hook { $_[1]->schema->drop_table($_[1]) }
Subroutine sqlt_deploy_hook: not called CC=1 SCAR=6.9
Pod undocumented
22  
23 256 1;
24  
25 __END__
« blib/lib/DBIO/Test/Namespace/RtBug41083/ResultSet_A/A.pm ↑ Summary blib/lib/DBIO/Test/Schema/TreeLike.pm »