lib/Grimlock/Schema/ResultSet/Entry.pm

filter: Statementstmt 85.7% 12 / 14 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 68.1% 15 / 22 CC 2 SCAR 11.0
CC
2
Cov
75%
front_page_entries
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« lib/Grimlock/Web/Controller/Entry.pm ↑ Summary lib/Grimlock/Web/Controller/User.pm »
1 package Grimlock::Schema::ResultSet::Entry;
2 {
3 6 $Grimlock::Schema::ResultSet::Entry::VERSION = '0.11';
4 }
5 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 6 ▶use base 'DBIx::Class::ResultSet';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 0 ▶sub front_page_entries {
Subroutine front_page_entries: not called CC=2 SCAR=17.9
Pod undocumented
10 0 my ($self, $limit) = @_;
11 0 ▶ return $self->search(
Condition0%0/2
$limit || 50
l!l
00
MC/DC0%0/1
$limit || 50
$limit
Truth table0%0/2
A
A= $limit
Aresult
11
00
12 {
13 parent => undef,
14 published => 1
15 },
16 {
17 rows => $limit || 50,
18 order_by => {
19 -desc => 'created_at'
20 },
21 }
22 );
23 }
24  
25 6 1;
26  
« lib/Grimlock/Web/Controller/Entry.pm ↑ Summary lib/Grimlock/Web/Controller/User.pm »