blib/lib/Dancer/Logger/Diag.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 23 / 23 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Dancer/Logger/Capture.pm ↑ Summary blib/lib/Dancer/Logger/Note.pm »
1 package Dancer::Logger::Diag;
2 2 our $AUTHORITY = 'cpan:SUKRIA';
3 #ABSTRACT: Test::More diag() logging engine for Dancer
4 2 $Dancer::Logger::Diag::VERSION = '1.3520';
5 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use base 'Dancer::Logger::Abstract';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 sub init {
10 1 ▶ my $self = shift;
Subroutine init: called CC=1 SCAR=0.0
Pod documented
11 1 $self->SUPER::init(@_);
12 1 require Test::More;
13 }
14  
15 sub _log {
16 1 ▶ my ($self, $level, $message) = @_;
Subroutine _log: called CC=1 SCAR=0.0
17  
18 1 Test::More::diag(
19 $self->format_message( $level => $message )
20 );
21 }
22  
23 2 1;
24  
25 __END__
« blib/lib/Dancer/Logger/Capture.pm ↑ Summary blib/lib/Dancer/Logger/Note.pm »