DBIxCustom.pm

filter: Statementstmt 76.9% 10 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 3 / 6 Podpod 0.0% 0 / 2 totaltotal 61.9% 13 / 21 CC 1 SCAR 4.1
CC
1
Cov
77%
last_id
2.0
count
2.0
__ANON__
2.0
CRAP 1.5
« Plugin/DBIxCustom.pm ↑ Summary
1 package Mojolicious::DBIxCustom;
2 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use DBIx::Custom -base;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 0 ▶sub last_id{
Subroutine last_id: not called CC=1 SCAR=6.9
Pod undocumented
8 0 shift->select("LAST_INSERT_ID()")->value;
9 }
10  
11 0 ▶sub count{
Subroutine count: not called CC=1 SCAR=6.9
Pod undocumented
12 shift->select(@_,
13 0 ▶ after_build_sql => sub{
Subroutine __ANON__: not called CC=1 SCAR=6.9
14 0 "select count(*) from ($_[0]) as t"
15 0 })->value;
16 }
17  
18 1 1;
« Plugin/DBIxCustom.pm ↑ Summary