blib/lib/Dancer2/Logger/Note.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
log
1.0
CRAP 1.0
« blib/lib/Dancer2/Logger/Diag.pm ↑ Summary blib/lib/Dancer2/Logger/Null.pm »
1 package Dancer2::Logger::Note;
2 # ABSTRACT: Test::More note() logging engine for Dancer2
3 95 $Dancer2::Logger::Note::VERSION = '2.2.1';
4 102 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 102 ▶use Test::More;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 95 with 'Dancer2::Core::Role::Logger';
8  
9 sub log {
10 14 ▶ my ( $self, $level, $message ) = @_;
Subroutine log: called CC=1 SCAR=0.0
Pod documented
11  
12 14 Test::More::note( $self->format_message( $level => $message ) );
13 }
14  
15 95 1;
16  
17 __END__
« blib/lib/Dancer2/Logger/Diag.pm ↑ Summary blib/lib/Dancer2/Logger/Null.pm »