NewsExtractor/SiteSpecificExtractor/www_taipeitimes_com.pm

filter: Statementstmt 61.1% 11 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 56.0% 14 / 25 CC 1 SCAR 3.4
CC
1
Cov
61%
dateline
2.0
journalist
2.0
BEGIN
1.0
CRAP 1.4
« NewsExtractor/SiteSpecificExtractor/news_tnn_tw.pm ↑ Summary NewsExtractor/SiteSpecificExtractor/www_thestandnews_com.pm »
1 package NewsExtractor::SiteSpecificExtractor::www_taipeitimes_com;
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 dateline {
Subroutine dateline: not called CC=1 SCAR=6.9
Pod undocumented
9 0 my ($self) = @_;
10 0 my $el = $self->dom->at("meta[property='article:published_time']");
11 0 return "". $el->attr('content');
12 }
13  
14 0 ▶sub journalist {
Subroutine journalist: not called CC=1 SCAR=6.9
Pod undocumented
15 0 my ($self) = @_;
16 0 my $el = $self->dom->at(".name");
17 0 my $txt = $el->text;
18 0 return normalize_whitespace($txt);
19 }
20  
21 1 1;
« NewsExtractor/SiteSpecificExtractor/news_tnn_tw.pm ↑ Summary NewsExtractor/SiteSpecificExtractor/www_thestandnews_com.pm »