blib/lib/DBIO/Test/MooCakeSchema/Result/Artist.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
_build_display_name
1.0
CRAP 1.0
« blib/lib/DBIO/Test/MooCakeSchema.pm ↑ Summary blib/lib/DBIO/Test/MooSchema.pm »
1 package DBIO::Test::MooCakeSchema::Result::Artist;
2 # ABSTRACT: Moo + Cake test result class for the artist table
3  
4 3 our $VERSION = '0.900007';
5  
6 3 ▶use DBIO::Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use DBIO::Cake;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 table 'artist';
10  
11 3 col id => integer auto_inc;
12 3 col name => varchar(100);
13  
14 3 primary_key 'id';
15  
16 3 __PACKAGE__->has_many( cds => 'DBIO::Test::MooCakeSchema::Result::CD', 'artist_id' );
17  
18 3 __PACKAGE__->resultset_class('DBIO::Test::MooCakeSchema::ResultSet::Artist');
19  
20 3 has display_name => ( is => 'lazy' );
21 1 ▶sub _build_display_name { 'Artist: ' . $_[0]->name }
Subroutine _build_display_name: called CC=1 SCAR=0.0
22  
23 1 ▶has score => ( is => 'rw', lazy => 1, default => sub { 0 } );
Subroutine __ANON__: called CC=1 SCAR=0.0
24  
25 3 1;
26  
27 __END__
« blib/lib/DBIO/Test/MooCakeSchema.pm ↑ Summary blib/lib/DBIO/Test/MooSchema.pm »