File Coverage

blib/lib/NewsExtractor/SiteSpecificExtractor/www_upmedia_mg.pm
Criterion Covered Total %
statement 9 13 69.2
branch n/a
condition n/a
subroutine 3 4 75.0
pod 0 1 0.0
total 12 18 66.6


line stmt bran cond sub pod time code
1             package NewsExtractor::SiteSpecificExtractor::www_upmedia_mg;
2 1     1   8 use utf8;
  1         2  
  1         7  
3 1     1   38 use Moo;
  1         3  
  1         6  
4             extends 'NewsExtractor::GenericExtractor';
5              
6 1     1   340 use Importer 'NewsExtractor::TextUtil' => 'normalize_whitespace';
  1         3  
  1         7  
7              
8             sub journalist {
9 0     0 0   my ($self) = @_;
10 0           my $el = $self->dom->at("div.author > a");
11 0           my $txt = $el->text;
12 0           return normalize_whitespace($txt);
13             }
14              
15             1;