Box/Mbox/Message.pm

filter: Statementstmt 51.8% 14 / 27 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 57.1% 4 / 7 Podpod 100% 3 / 3 totaltotal 45.6% 21 / 46 CC 4 SCAR 21.7
CC
4
Cov
41%
head
20.0
label
2.0
labels
2.0
CRAP 8.8
« Box/Search/SpamAssassin.pm ↑ Summary Box/Locker/NFS.pm »
1 # Copyrights 2001-2020 by [Mark Overmeer].
2 # For other contributors see ChangeLog.
3 # See the manual pages for details on the licensing terms.
4 # Pod stripped from pm file by OODoc 2.02.
5 # This code is part of distribution Mail-Box. Meta-POD processed with
6 # OODoc into POD and HTML manual-pages. See README.md
7 # Copyright Mark Overmeer. Licensed under the same terms as Perl itself.
8  
9 package Mail::Box::Mbox::Message;
10 25 ▶use vars '$VERSION';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 25 $VERSION = '3.009';
12  
13 25 ▶use base 'Mail::Box::File::Message';
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 25 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 25 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18  
19 sub head(;$$)
20 0 ▶{ my $self = shift;
Subroutine head: not called CC=4 SCAR=30.0
Pod documented
21 0 ▶ return $self->SUPER::head unless @_;
Branch: 1 branch
BranchTrueFalseTotal
unless @_ 0 0 0
22  
23 0 my ($head, $labels) = @_;
24 0 $self->SUPER::head($head, $labels);
25  
26 0 ▶ $self->statusToLabels if $head && !$head->isDelayed;
Branch: 1 branch
BranchTrueFalseTotal
if $head and not $head->isDelayed 0 0 0
Condition0%0/3
$head and not $head->isDelayed
!ll&&!rl&&r
000
MC/DC0%0/2
$head and not $head->isDelayed
$head not $head->isDelayed
Truth table0%0/3
A and not(B)
A= $headB= not $head->isDelayed
ABresult
0X0
100
111
27 0 $head;
28 }
29  
30 sub label(@)
31 0 ▶{ my $self = shift;
Subroutine label: not called CC=1 SCAR=6.9
Pod documented
32 0 $self->loadHead; # be sure the status fields have been read
33 0 my $return = $self->SUPER::label(@_);
34 0 $return;
35 }
36  
37 sub labels(@)
38 0 ▶{ my $self = shift;
Subroutine labels: not called CC=1 SCAR=6.9
Pod documented
39 0 $self->loadHead; # be sure the status fields have been read
40 0 $self->SUPER::labels(@_);
41 }
42  
43 25 1;
« Box/Search/SpamAssassin.pm ↑ Summary Box/Locker/NFS.pm »