File Coverage

blib/lib/Net/Gotify/Error.pm
Criterion Covered Total %
statement 17 18 94.4
branch n/a
condition n/a
subroutine 6 7 85.7
pod 1 1 100.0
total 24 26 92.3


line stmt bran cond sub pod time code
1             package Net::Gotify::Error;
2              
3 1     1   20 use 5.010000;
  1         4  
4 1     1   7 use strict;
  1         2  
  1         28  
5 1     1   5 use warnings;
  1         2  
  1         63  
6 1     1   6 use utf8;
  1         10  
  1         7  
7              
8 1     1   57 use Moo;
  1         2  
  1         6  
9              
10 1     1   775 use overload '""' => 'to_string', fallback => 1;
  1         3  
  1         9  
11              
12             has error => (is => 'rw');
13             has code => (is => 'rw');
14             has description => (is => 'rw');
15              
16 0     0 1   sub to_string { shift->description }
17              
18             1;
19              
20             __END__