NewsExtractor/SiteSpecificExtractor/ctee_com_tw.pm

filter: Statementstmt 78.5% 11 / 14 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 63.6% 14 / 22 CC 2 SCAR 11.0
CC
2
Cov
69%
journalist
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« NewsExtractor.pm ↑ Summary NewsExtractor/SiteSpecificExtractor/hk_crntt_com.pm »
1 package NewsExtractor::SiteSpecificExtractor::ctee_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::GenericExtractor';
5  
6 1 ▶use Importer 'NewsExtractor::TextUtil' => qw( normalize_whitespace );
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 0 ▶sub journalist {
Subroutine journalist: not called CC=2 SCAR=17.9
Pod undocumented
9 0 my ($self) = @_;
10 0 ▶ my $text = $self->tx->result->dom->find("div.single-post-meta a")->map('text')->join(" ") // '';
Condition0%0/2
$self->tx->result->dom->find("div.single-post-meta a")->map("text")->join(" ") // ""
l!l
00
MC/DC0%0/1
$self->tx->result->dom->find("div.single-post-meta a")->map("text")->join(" ") // ""
$self->tx->result->dom->find("div.single-post-meta a")->map("text")->join(" ")
Truth table0%0/2
A
A= $self->tx->result->dom->find("div.single-post-meta a")->map("text")->join(" ")
Aresult
11
00
11 0 return normalize_whitespace("". $text);
12 }
13  
14 1 1;
« NewsExtractor.pm ↑ Summary NewsExtractor/SiteSpecificExtractor/hk_crntt_com.pm »