blib/lib/Mail/SimpleList/Aliases.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond 66.6% 2 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 9 / 9 Podpod 100% 4 / 4 totaltotal 92.8% 39 / 42 SCAR 6.9
CC
2
Cov
96%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« _build/lib/Module/Build/FilterTests.pm ↑ Summary
1 package Mail::SimpleList::Aliases;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use base 'Mail::Action::Storage';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use File::Spec;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 3 ▶use Mail::SimpleList::Alias;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 ▶use vars qw( $VERSION );
Subroutine BEGIN: called CC=1 SCAR=0.0
11 3 $VERSION = '0.92';
12  
13 sub new
14 {
15 23 ▶ my ($class, $directory) = @_;
Subroutine new: called CC=2 SCAR=7.0
Pod documented
16 23 ▶ $directory ||= File::Spec->catdir( $ENV{HOME}, '.aliases' );
Condition66%2/3
$directory ||= "File::Spec"->catdir($ENV{"HOME"}, ".aliases")
l!l&&r!l&&!r
2210
MC/DC0%0/2
$directory ||= "File::Spec"->catdir($ENV{"HOME"}, ".aliases")
$directory "File::Spec"->catdir($ENV{"HOME"}, ".aliases")
Truth table66%2/3
A ||= B
A= $directoryB= "File::Spec"->catdir($ENV{"HOME"}, ".aliases")
ABresult
1X1
011
000
17  
18 23 $class->SUPER::new( $directory );
19 }
20  
21 sub stored_class
22 {
23 16 ▶ 'Mail::SimpleList::Alias';
Subroutine stored_class: called CC=1 SCAR=0.0
Pod documented
24 }
25  
26 sub storage_extension
27 {
28 57 ▶ 'sml'
Subroutine storage_extension: called CC=1 SCAR=0.0
Pod documented
29 }
30  
31 sub create
32 {
33 10 ▶ my ($self, $owner) = @_;
Subroutine create: called CC=1 SCAR=0.0
Pod documented
34  
35 10 return Mail::SimpleList::Alias->new(
36 owner => $owner,
37 members => [$owner],
38 );
39 }
40  
41 3 1;
42  
43 __END__
« _build/lib/Module/Build/FilterTests.pm ↑ Summary