blib/lib/Siesta/Plugin/Debounce.pm

filter: Statementstmt 89.4% 17 / 19 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 50.0% 1 / 2 totaltotal 82.1% 23 / 28 CC 3 SCAR 7.4
CC
3
Cov
81%
process
3.6
BEGIN
1.0
BEGIN
1.0
CRAP 2.1
« blib/lib/Siesta/Plugin/SubjectTag.pm ↑ Summary blib/lib/Siesta/Plugin/SimpleSig.pm »
1 package Siesta::Plugin::Debounce;
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use Siesta::Plugin;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use base 'Siesta::Plugin';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶sub description {
Subroutine description: called CC=1 SCAR=0.0
Pod undocumented
7 1 "handles bounces/loops.";
8 }
9  
10 1 ▶sub process {
Subroutine process: called CC=3 SCAR=12.7
Pod documented
11 1 my $self = shift;
12 1 my $mail = shift;
13  
14 1 my $post = $self->list->post_address;
15 1 for my $been ( $mail->header_set('X-Been-There') ) {
16 0 chomp $been;
17  
18 # have we been here before?
19 0 ▶ return 1 if $been eq $post;
Branch: 1 branch
BranchTrueFalseTotal
if $been eq $post 0 0 0
20 }
21  
22 1 $mail->header_set( 'X-Been-There', $post );
23 1 return;
24 }
25  
26 3 1;
27  
« blib/lib/Siesta/Plugin/SubjectTag.pm ↑ Summary blib/lib/Siesta/Plugin/SimpleSig.pm »