Rssfilter/Filter/DeleteItem.pm

filter: Statementstmt 100% 18 / 18 Branchbran 100% 6 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 29 / 29 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 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 2 ▶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 2 $App::Rssfilter::Filter::DeleteItem::VERSION = '0.08'; # TRIAL
9 2 ▶use Method::Signatures;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11  
12 2 ▶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 4 5
scalar @_ > 1 ? : 3 1 4
if scalar @_ > 2 1 3 4
13 3 $item->replace(q{});
14 }
15 2 1;
16  
17 __END__
« Rssfilter/Filter/MarkTitle.pm ↑ Summary Rssfilter.pm »