Rssfilter/Filter/DeleteItem.pm

filter: Statementstmt 100% 19 / 19 Branchbran 100% 6 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 30 / 30 CC 4 SCAR 9.2
CC
4
Cov
100%
filter
4.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.5
« Rssfilter/Filter/MarkTitle.pm ↑ Summary Rssfilter.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 # ABSTRACT: remove an RSS item from its channel
5  
6  
7 package App::Rssfilter::Filter::DeleteItem;
8 {
9 1 $App::Rssfilter::Filter::DeleteItem::VERSION = '0.07';
10 }
11  
12 1 ▶use Method::Signatures;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14  
15 1 ▶func filter ( $item, $matcher = 'no reason' ) {
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine filter: called CC=4 SCAR=13.9
Branch: 3 branches
BranchTrueFalseTotal
unless scalar @_ > 0 1 3 4
scalar @_ > 1 ? : 2 1 3
if scalar @_ > 2 1 2 3
16 2 $item->replace(q{});
17 }
18 1 1;
19  
20 __END__
« Rssfilter/Filter/MarkTitle.pm ↑ Summary Rssfilter.pm »