NewsExtractor/SiteSpecificExtractor/news_tvbs_com_tw.pm

filter: Statementstmt 73.3% 11 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 70.0% 14 / 20 CC 1 SCAR 2.2
CC
1
Cov
73%
journalist
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« NewsExtractor/SiteSpecificExtractor/ChinaTimes.pm ↑ Summary NewsExtractor/SiteSpecificExtractor/www_upmedia_mg.pm »
1 package NewsExtractor::SiteSpecificExtractor::news_tvbs_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' => 'normalize_whitespace';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 0 ▶sub journalist {
Subroutine journalist: not called CC=1 SCAR=6.9
Pod undocumented
9 0 my ($self) = @_;
10 0 my $el = $self->dom->at("div.title h4.font_color5");
11 0 my $txt = $el->all_text;
12 0 return normalize_whitespace($txt);
13 }
14  
15 1 1;
« NewsExtractor/SiteSpecificExtractor/ChinaTimes.pm ↑ Summary NewsExtractor/SiteSpecificExtractor/www_upmedia_mg.pm »