Branch Coverage

blib/lib/Log/Procmail.pm
Criterion Covered Total %
branch 43 50 86.0


line true false branch
47 50 164 if (/^From (.+?) +($DATE)$/o)
55 1 49 if @{$$log{'buffer'};} > 1
60 49 115 if (/^ Subject: (.*)/i)
62 1 48 unless @{$$log{'buffer'};}
70 50 65 if (/^ Folder: (.*?)\s+(\d+)$/)
72 0 50 unless @{$$log{'buffer'};}
82 27 38 unless $$log{'errors'}
91 7 38 if (not $read or @{$$log{'buffer'};} == 0)
94 0 7 if @{$$log{'buffer'};}
97 4 3 if $log->_open_next
106 51 38 if (UNIVERSAL::isa($rec, 'Log::Procmail::Abstract'))
108 1 50 unless defined $rec->folder
122 4 2 @_ ? :
127 9 86 unless $$log{'fh'}->opened
144 13 3 if (@{$$log{'files'};}) { }
148 1 12 if (ref $file eq 'GLOB') { }
1 11 elsif (ref $file and $file->isa('IO::Handle')) { }
150 0 1 unless $$log{'fh'}->opened
156 0 11 unless $$log{'fh'}->open($file)
159 0 13 grep(($^O eq $_), ('MSWin32', 'NetWare', 'dos', 'VMS', 'riscos', 'beos')) ? :
167 9 1 if ($$self{'fh'} and $$self{'fh'}->opened)
186 252 156 @_ ? :
192 0 3 if @_
194 0 3 unless defined $$self{'date'}
196 1 2 unless $1