blib/lib/Dancer/Logger/Note.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 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Dancer/Logger/Diag.pm ↑ Summary blib/lib/Dancer/Logger/Null.pm »
1 package Dancer::Logger::Note;
2 2 our $AUTHORITY = 'cpan:SUKRIA';
3 #ABSTRACT: Test::More note() logging engine for Dancer
4 2 $Dancer::Logger::Note::VERSION = '1.3522';
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 1 ▶sub init {
Subroutine init: called CC=1 SCAR=0.0
Pod documented
10 1 my $self = shift;
11 1 $self->SUPER::init(@_);
12 1 require Test::More;
13 }
14  
15 1 ▶sub _log {
Subroutine _log: called CC=1 SCAR=0.0
16 1 my ($self, $level, $message) = @_;
17  
18 1 Test::More::note(
19 $self->format_message( $level => $message )
20 );
21 }
22  
23 2 1;
24  
25 __END__
« blib/lib/Dancer/Logger/Diag.pm ↑ Summary blib/lib/Dancer/Logger/Null.pm »