Rssfilter/Match/AbcPreviews.pm

filter: Statementstmt 100% 18 / 18 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 27 / 27 CC 3 SCAR 6.2
CC
3
Cov
100%
match
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« Rssfilter/Cmd/runfromconfig.pm ↑ Summary Rssfilter/Match/BbcSports.pm »
1 # ABSTRACT: match an ABC preview RSS item
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6  
7 package App::Rssfilter::Match::AbcPreviews;
8 {
9 1 $App::Rssfilter::Match::AbcPreviews::VERSION = '0.07';
10 }
11 1 ▶use Method::Signatures;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13  
14 1 ▶func match ( $item ) {
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine match: called CC=3 SCAR=11.0
Branch: 2 branches
BranchTrueFalseTotal
unless scalar @_ > 0 1 2 3
if scalar @_ > 1 1 1 2
15 1 return $item->guid->text =~ / [^-] preview /xms and $item->title->text !~ / preview /ixms;
16 }
17  
18 1 1;
19  
20 __END__
« Rssfilter/Cmd/runfromconfig.pm ↑ Summary Rssfilter/Match/BbcSports.pm »