File Coverage

blib/lib/Dancer2/Logger/Diag.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Dancer2::Logger::Diag;
2             # ABSTRACT: Test::More diag() logging engine for Dancer2
3             $Dancer2::Logger::Diag::VERSION = '2.1.0';
4 1     1   332855 use Moo;
  1         16117  
  1         10  
5 1     1   3532 use Test::More;
  1         126955  
  1         22  
6              
7             with 'Dancer2::Core::Role::Logger';
8              
9             sub log {
10             my ( $self, $level, $message ) = @_;
11              
12             Test::More::diag( $self->format_message( $level => $message ) );
13             }
14              
15             1;
16              
17             __END__