File Coverage

blib/lib/NewsExtractor/Error.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 NewsExtractor::Error;
2 1     1   8 use Moo;
  1         2  
  1         12  
3 1     1   805 use NewsExtractor::Types qw<Bool Text HashRef>;
  1         5  
  1         14  
4              
5             has is_exception => ( required => 1, is => 'ro', isa => Bool, default => 0 );
6             has message => ( required => 1, is => 'ro', isa => Text );
7             has debug => ( required => 0, is => 'ro', isa => HashRef );
8              
9             1;