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

filter: Statementstmt 33.3% 1 / 3 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 50.0% 2 / 4 CC 1 SCAR 2.6
CC
1
Cov
33%
BEGIN
1.3
CRAP 1.3
« blib/lib/DBIO/Test/MooseSchema/ResultSet/Artist.pm ↑ Summary blib/lib/DBIO/Test/Namespace/RtBug41083/ResultSet/Foo.pm »
1 package DBIO::Test::MooseSugarSchema::ResultSet::Artist;
2 # ABSTRACT: Custom Moose-based ResultSet for the MooseSugar artist source
3  
4 our $VERSION = '0.900007';
5  
6 0 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=2.6
7 use MooseX::NonMoose;
8 extends 'DBIO::ResultSet';
9  
10 has default_limit => ( is => 'rw', isa => 'Int', lazy => 1, default => 100 );
11  
12 sub by_name {
13 my ($self, $name) = @_;
14 return $self->search({ name => $name });
15 }
16  
17 sub order_by_name {
18 return $_[0]->search({}, { order_by => { -asc => 'name' } });
19 }
20  
21 __PACKAGE__->meta->make_immutable;
22  
23 1;
24  
25 __END__
« blib/lib/DBIO/Test/MooseSchema/ResultSet/Artist.pm ↑ Summary blib/lib/DBIO/Test/Namespace/RtBug41083/ResultSet/Foo.pm »