NewsExtractor/SiteSpecificExtractor/talk_ltn_com_tw.pm

filter: Statementstmt 75.0% 9 / 12 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 61.1% 11 / 18 CC 2 SCAR 12.5
CC
2
Cov
64%
journalist
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.5
« NewsExtractor/SiteSpecificExtractor/www_epochtimes_com.pm ↑ Summary NewsExtractor.pm »
1 package NewsExtractor::SiteSpecificExtractor::talk_ltn_com_tw;
2 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 extends 'NewsExtractor::JSONLDExtractor';
5  
6 1 with 'NewsExtractor::Role::ContentTextExtractor';
7  
8 0 ▶sub journalist {
Subroutine journalist: not called CC=2 SCAR=17.9
Pod undocumented
9 0 my ($self) = @_;
10 0 ▶ my $el = $self->dom->at('div.writer > a:nth-child(1)') or return;
Branch: 1 branch
BranchTrueFalseTotal
my $el = $self->dom->at("div.writer > a:nth-child(1)") or return 0 0 0
11 0 return $el->attr('data-desc');
12 }
13  
14 1 1;
« NewsExtractor/SiteSpecificExtractor/www_epochtimes_com.pm ↑ Summary NewsExtractor.pm »