Sietima/Role/NoMail.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond 100% 2 / 2 MC/DCmcdc 100% 1 / 1 Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 21 / 21 CC 2 SCAR 3.4
CC
2
Cov
100%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« Sietima.pm ↑ Summary Sietima/Role/ManualSubscription.pm »
1 package Sietima::Role::NoMail;
2 1 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use Sietima::Policy;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $VERSION = '1.1.5'; # VERSION
7 # ABSTRACT: don't send mail to those who don't want it
8  
9  
10 2 ▶around subscribers_to_send_to => sub ($orig,$self,$mail) {
Subroutine __ANON__: called CC=2 SCAR=6.9
11 return [
12 2 ▶ grep { $_->prefs->{wants_mail} // 1 }
Condition100%2/2
$_->prefs->{"wants_mail"} // 1
l!l
22
MC/DC100%1/1
$_->prefs->{"wants_mail"} // 1
$_->prefs->{"wants_mail"}
Truth table100%2/2
A
A= $_->prefs->{"wants_mail"}
Aresult
11
00
13 $self->$orig($mail)->@*,
14 ];
15 1 };
16  
17 1 1;
18  
19 __END__
« Sietima.pm ↑ Summary Sietima/Role/ManualSubscription.pm »