File Coverage

blib/lib/NewsExtractor/SiteSpecificExtractor/www_fountmedia_io.pm
Criterion Covered Total %
statement 6 12 50.0
branch n/a
condition n/a
subroutine 2 3 66.6
pod 0 1 0.0
total 8 16 50.0


line stmt bran cond sub pod time code
1             use utf8;
2 1     1   6 use Moo;
  1         3  
  1         5  
3 1     1   26 extends 'NewsExtractor::GenericExtractor';
  1         1  
  1         5  
4              
5             my ($self) = @_;
6             my $dom = $self->dom;
7 0     0 0   my $el_date = $dom->at("div.detitle2 > div.cell > div");
8 0           my $el_time = $dom->at("div.detitle2 > div.cell.time");
9 0           my $dateline = ($el_date->text =~ s/\./-/gr) . "T" . ($el_time->text =~ s/[ap]m/:00+08:00/r);
10 0           return $dateline;
11 0           }
12 0            
13             1;