blib/lib/Tapper/Reports/Web/Controller/Tapper/Reports/Info.pm

filter: Statementstmt 100% 27 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 0.0% 0 / 1 totaltotal 97.2% 35 / 36 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Tapper/Reports/Web/Controller/Tapper/Start.pm ↑ Summary blib/lib/Tapper/Reports/Web/Controller/Tapper/Schedule.pm »
1 package Tapper::Reports::Web::Controller::Tapper::Reports::Info;
2 13 our $AUTHORITY = 'cpan:TAPPER';
3 13 $Tapper::Reports::Web::Controller::Tapper::Reports::Info::VERSION = '5.0.17';
4 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 13 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 13 ▶use parent 'Tapper::Reports::Web::Controller::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 ▶sub firstid :Path('firstid') :Args(0) {
Subroutine firstid: called CC=1 SCAR=0.0
12 1 my ( $self, $c ) = @_;
13  
14 # SELECT MIN(id) FROM report;
15 1 my $first_id = $c->model('TestrunDB')->resultset('Report')->get_column("id")->min;
16 1 $c->response->body($first_id);
17 13 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 2 ▶sub lastid :Path('lastid') :Args(0) {
Subroutine lastid: called CC=1 SCAR=0.0
Pod undocumented
20 2 my ( $self, $c ) = @_;
21  
22 # SELECT MAX(id) FROM report;
23 2 my $last_id = $c->model('TestrunDB')->resultset('Report')->get_column("id")->max;
24 2 $c->response->body($last_id);
25 13 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
26  
27 13 1;
28  
29 __END__
« blib/lib/Tapper/Reports/Web/Controller/Tapper/Start.pm ↑ Summary blib/lib/Tapper/Reports/Web/Controller/Tapper/Schedule.pm »