Data/Object/Base.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 30 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Data/Object/Author.pm ↑ Summary Data/Object/Date.pm »
1 package Feed::Data::Object::Base;
2  
3 8 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 8 ▶use Feed::Data::Object;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 8 ▶use HTML::Strip;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 8 ▶use Encode qw(encode_utf8);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 8 ▶use Types::Standard qw/Undef Str/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 8 has 'raw' => (
10 is => 'rw',
11 lazy => 1,
12 isa => Str|Undef
13 );
14  
15 has 'text' => (
16 is => 'rw',
17 lazy => 1,
18 isa => Str,
19 default => sub {
20 62 ▶ my $hs = HTML::Strip->new();
Subroutine __ANON__: called CC=1 SCAR=0.0
21 62 my $string = $hs->parse(shift->raw);
22 62 return encode_utf8($string);
23 },
24 8 );
25  
26 has 'json' => (
27 is => 'rw',
28 lazy => 1,
29 isa => Str,
30 default => sub {
31 51 ▶ return shift->text;
Subroutine __ANON__: called CC=1 SCAR=0.0
32 },
33 8 );
34  
35 8 1;
« Data/Object/Author.pm ↑ Summary Data/Object/Date.pm »