Rssfilter/Filter/MarkTitle.pm

filter: Statementstmt 100% 21 / 21 Branchbran 100% 8 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 34 / 34 CC 5 SCAR 11.7
CC
5
Cov
100%
filter
5.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.2
« Rssfilter/Group.pm ↑ Summary Rssfilter/Filter/DeleteItem.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: add some text to the title of an RSS item
5  
6  
7 package App::Rssfilter::Filter::MarkTitle;
8 {
9 1 $App::Rssfilter::Filter::MarkTitle::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, $explicit_prefix = $matcher ) {
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine filter: called CC=5 SCAR=16.1
Branch: 4 branches
BranchTrueFalseTotal
unless scalar @_ > 0 1 3 4
unless scalar @_ > 1 1 2 3
scalar @_ > 2 ? : 1 1 2
if scalar @_ > 3 1 1 2
16 1 $item->title->replace_content(uc($explicit_prefix) ." - ".$item->title->content_xml);
17 }
18 1 1;
19  
20 __END__
« Rssfilter/Group.pm ↑ Summary Rssfilter/Filter/DeleteItem.pm »