Box/Mbox/Message.pm

filter: Statementstmt 100% 27 / 27 Branchbran 100% 4 / 4 Conditioncond 66.6% 2 / 3 MC/DCmcdc 50.0% 1 / 2 Subroutinesub 100% 7 / 7 Podpod 100% 3 / 3 totaltotal 95.6% 44 / 46 CC 4 SCAR 7.9
CC
4
Cov
97%
head
4.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.2
« Box/Tie/ARRAY.pm ↑ Summary Box/File/Message.pm »
1 # This code is part of Perl distribution Mail-Box version 4.02.
2 # The POD got stripped from this file by OODoc version 3.06.
3 # For contributors see file ChangeLog.
4  
5 # This software is copyright (c) 2001-2026 by Mark Overmeer.
6  
7 # This is free software; you can redistribute it and/or modify it under
8 # the same terms as the Perl 5 programming language system itself.
9 # SPDX-License-Identifier: Artistic-1.0-Perl OR GPL-1.0-or-later
10  
11  
12 package Mail::Box::Mbox::Message;{
13 25 our $VERSION = '4.02';
14 }
15  
16 25 ▶use parent 'Mail::Box::File::Message';
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 25 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 25 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 25 ▶use Log::Report 'mail-box', import => [ qw// ];
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 #--------------------
24  
25 sub head(;$$)
26 14474 ▶{ my $self = shift;
Subroutine head: called CC=4 SCAR=13.9
Pod documented
27 14474 ▶ return $self->SUPER::head unless @_;
Branch: 1 branch
BranchTrueFalseTotal
unless @_ 13165 1309 14474
28  
29 1309 my ($head, $labels) = @_;
30 1309 $self->SUPER::head($head, $labels);
31  
32 1309 ▶ $self->statusToLabels if $head && !$head->isDelayed;
Branch: 1 branch
BranchTrueFalseTotal
if $head and not $head->isDelayed 1264 45 1309
Condition66%2/3
$head and not $head->isDelayed
!ll&&!rl&&r
4501264
MC/DC50%1/2
$head and not $head->isDelayed
$head not $head->isDelayed
Truth table66%2/3
A and not(B)
A= $headB= not $head->isDelayed
ABresult
0X0
100
111
33 1309 $head;
34 }
35  
36 sub label(@)
37 4112 ▶{ my $self = shift;
Subroutine label: called CC=1 SCAR=0.0
Pod documented
38 4112 $self->loadHead; # be sure the status fields have been read
39 4112 $self->SUPER::label(@_);
40 }
41  
42 sub labels(@)
43 143 ▶{ my $self = shift;
Subroutine labels: called CC=1 SCAR=0.0
Pod documented
44 143 $self->loadHead; # be sure the status fields have been read
45 143 $self->SUPER::labels(@_);
46 }
47  
48 25 1;
« Box/Tie/ARRAY.pm ↑ Summary Box/File/Message.pm »