File Coverage

lib/Unexpected.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 23 23 100.0


line stmt bran cond sub pod time code
1             package Unexpected;
2              
3 4     4   420098 use 5.010001;
  4         19  
4 4     4   1412 use namespace::autoclean;
  4         63565  
  4         20  
5 22     22   13236 use overload '""' => sub { $_[ 0 ]->as_string },
6 28     28   128 'bool' => sub { $_[ 0 ]->as_boolean },
7 4     4   844 'fallback' => 1;
  4         11  
  4         71  
8 4     4   517 use version; our $VERSION = qv( sprintf '1.0.%d', q$Rev: 1 $ =~ /\d+/gmx );
  4         11  
  4         31  
9              
10 4     4   1244 use Moo;
  4         9716  
  4         44  
11              
12             with q(Unexpected::TraitFor::StringifyingError);
13             with q(Unexpected::TraitFor::Throwing);
14             with q(Unexpected::TraitFor::TracingStacks);
15              
16             sub BUILD {} # Modified by the applied roles
17              
18             1;
19              
20             __END__