File Coverage

blib/lib/NewsExtractor/CSSRuleSet.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package NewsExtractor::CSSRuleSet;
2 1     1   19 use v5.18;
  1         4  
3 1     1   27 use utf8;
  1         3  
  1         10  
4 1     1   28 use Moo;
  1         3  
  1         7  
5              
6 1     1   1898 use Types::Common::String qw( NonEmptySimpleStr );
  1         26554  
  1         19  
7              
8             has headline => (
9             required => 1,
10             is => 'ro',
11             isa => NonEmptySimpleStr,
12             );
13              
14             has journalist => (
15             required => 1,
16             is => 'ro',
17             isa => NonEmptySimpleStr,
18             );
19              
20             has dateline => (
21             required => 1,
22             is => 'ro',
23             isa => NonEmptySimpleStr,
24             );
25              
26             has content_text => (
27             required => 1,
28             is => 'ro',
29             isa => NonEmptySimpleStr,
30             );
31              
32             1;