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

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 20 / 20 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/LyricVersion.pm ↑ Summary blib/lib/DBIO/Test/Schema/Money.pm »
1 package DBIO::Test::Schema::Lyrics;
2 # ABSTRACT: Test result class for the lyrics table
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::BaseResult/;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 256 __PACKAGE__->table('lyrics');
13 256 __PACKAGE__->add_columns(
14 'lyric_id' => {
15 data_type => 'integer',
16 is_auto_increment => 1,
17 },
18 'track_id' => {
19 data_type => 'integer',
20 is_foreign_key => 1,
21 },
22 );
23 256 __PACKAGE__->set_primary_key('lyric_id');
24 256 __PACKAGE__->belongs_to('track', 'DBIO::Test::Schema::Track', 'track_id');
25 256 __PACKAGE__->has_many('lyric_versions', 'DBIO::Test::Schema::LyricVersion', 'lyric_id');
26  
27 256 __PACKAGE__->has_many('existing_lyric_versions', 'DBIO::Test::Schema::LyricVersion', 'lyric_id', {
28 join_type => 'inner',
29 });
30  
31 256 1;
32  
33 __END__
« blib/lib/DBIO/Test/Schema/LyricVersion.pm ↑ Summary blib/lib/DBIO/Test/Schema/Money.pm »