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

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