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.0.1';
4 1     1   219646 use Moo;
  1         8397  
  1         7  
5 1     1   1973 use Test::More;
  1         111257  
  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__