File Coverage

inc/Test2/Event/Diag.pm
Criterion Covered Total %
statement 11 14 78.5
branch 0 2 0.0
condition n/a
subroutine 4 7 57.1
pod 2 3 66.6
total 17 26 65.3


line stmt bran cond sub pod time code
1             #line 1
2 6     6   41 package Test2::Event::Diag;
  6         13  
  6         172  
3 6     6   29 use strict;
  6         16  
  6         310  
4             use warnings;
5              
6             our $VERSION = '1.302073';
7              
8 6     6   33  
  6         233  
9 6     6   38 BEGIN { require Test2::Event; our @ISA = qw(Test2::Event) }
  6         12  
  6         39  
10             use Test2::Util::HashBase qw/message/;
11              
12 0 0   0 0   sub init {
13             $_[0]->{+MESSAGE} = 'undef' unless defined $_[0]->{+MESSAGE};
14             }
15 0     0 1    
16             sub summary { $_[0]->{+MESSAGE} }
17 0     0 1    
18             sub diagnostics { 1 }
19              
20             1;
21              
22             __END__