| 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(" ") // ""
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(" ")
| |||||||||||||
| 11 | 0 | return normalize_whitespace("". $text); | |||||||||||
| 12 | } | ||||||||||||
| 13 | |||||||||||||
| 14 | 1 | 1; | |||||||||||