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

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/DBIO/Test/Schema/Year1999CDs.pm ↑ Summary blib/lib/DBIO/Test/SyntaxErrorComponent1.pm »
1 package DBIO::Test::Schema::Year2000CDs;
2 # ABSTRACT: Test virtual view result class for 2000 CDs
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::CD/;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 256 __PACKAGE__->table_class('DBIO::ResultSource::View');
13 256 __PACKAGE__->table('year2000cds');
14  
15 # need to operate on the instance for things to work
16 256 __PACKAGE__->result_source_instance->view_definition( sprintf (
17 "SELECT %s FROM cd WHERE year = '2000'",
18 join (', ', __PACKAGE__->columns),
19 ));
20  
21 256 __PACKAGE__->belongs_to( artist => 'DBIO::Test::Schema::Artist' );
22 256 __PACKAGE__->has_many( tracks => 'DBIO::Test::Schema::Track', 'cd' );
23  
24 256 1;
25  
26 __END__
« blib/lib/DBIO/Test/Schema/Year1999CDs.pm ↑ Summary blib/lib/DBIO/Test/SyntaxErrorComponent1.pm »