Branch Coverage

blib/lib/Log/Delimited.pm
Criterion Covered Total %
branch 33 74 44.5


line true false branch
26 1 0 ref $_[0] eq 'HASH' ? :
44 0 2 unless ($ARGS{$_})
49 0 1 unless $$self{'log_name'}
57 12 0 ref $arg ? :
62 0 12 $return ? :
67 0 1 if $$self{'handled_dirs'}
68 0 1 unless $$self{'base_dir'}
69 0 1 unless $$self{'log_name'}
78 0 1 if $$self{'mkpathd'}
80 11 2 unless /_dir$/ and $$self{$_} =~ m[^/]
81 2 0 unless -d $$self{$_}
82 0 2 unless -d $$self{$_}
89 1 0 if (ref $$self{'log_cols'} eq 'ARRAY' and not $$self{'cols_string'}) { }
90 1 0 unless $$self{'unshifted_hostname'} or $$self{'no_hostname'}
91 1 0 unless $$self{'unshifted_pid'} or $$self{'no_pid'}
92 1 0 unless $$self{'unshifted_time'} or $$self{'no_time'}
102 0 2 unless $ref
103 0 2 unless ref $ref and ref $ref eq 'ARRAY'
104 2 0 unless $$self{'no_hostname'}
105 2 0 unless $$self{'no_pid'}
106 2 0 unless $$self{'no_time'}
112 0 2 unless (ref $ref and ref $ref eq 'ARRAY')
117 0 12 unless defined $_ and length $_
118 0 12 if (ref $_ and ref $_ eq 'HASH')
121 12 0 unless $$self{'no_URLEncode'}
129 0 2 unless ref $self eq 'Log::Delimited'
131 0 2 unless open LOG, ">>$$self{'log_filename'}"
132 1 1 unless (-s $$self{'log_filename'})
133 1 0 if ($$self{'log_cols'})
139 2 0 unless (ref $$self{'log_info'}[0] eq 'ARRAY')
155 1 0 if (-e $$self{'log_filename'})
162 0 0 unless $$self{'log_filename'}
163 0 0 unless $$self{'zip_filename'}
164 0 0 unless -s $$self{'log_filename'}
170 0 0 unless $$self{'log_filename'}
171 0 0 unless $$self{'zip_filename'}
172 0 0 unless -s $$self{'zip_filename'}