Branch Coverage

blib/lib/Log/Dispatchouli.pm
Criterion Covered Total %
branch 58 104 55.7


line true false branch
146 1 38 unless my $ident = $arg->{'ident'}
148 0 38 defined $arg->{'config_id'} ? :
154 0 0 &_ARRAY0($arg->{$_}) ? :
0 38 exists $arg->{$_} ? :
161 37 1 exists $arg->{'log_pid'} ? :
164 2 36 if ($arg->{'to_file'})
189 1 1 if (my $format = $arg->{'file_format'}) { }
192 0 1 if $log_pid
200 1 0 if $log_pid
209 0 38 if ($arg->{'facility'} and not $self->env_value("NOSYSLOG"))
217 34 4 if ($arg->{'to_self'})
227 1 33 $self->log_pid_for('self') ? :
237 76 0 unless $$arg{"to_std$dest"}
244 1 0 $arg->{'debug'} ? :
4 33 $self->env_value('DEBUG') ? :
1 37 exists $arg->{'debug'} ? :
249 0 38 exists $arg->{'fail_fatal'} ? :
256 34 2 unless $log_pid
258 2 0 if $log_pid eq 1
262 0 0 $self->{'log_pid_for'}{$output} ? :
279 0 0 if $self->dispatcher->output($name)
283 0 0 $self->log_pid_for($name) ? :
291 0 0 $dest eq 'err' ? :
0 0 $self->{'quiet_fatal'}{"std$dest"} ? :
314 0 0 $self->log_pid_for('syslog') ? :
337 2 47 @flogged > 1 ? :
341 19 30 &_ARRAY0($arg->{'prefix'}) ? :
344 1 75 if (&_CODELIKE($_)) { }
355 45 4 &_HASH0($rest[0]) ? :
360 20 22 &_HASH0($rest[0]) ? :
364 40 2 if ($arg->{'fatal'} or not $self->get_muted)
373 0 0 unless defined $message
374 0 0 if $self->{'fail_fatal'}
378 3 39 if $arg->{'fatal'}
395 0 3 &_HASH0($rest[0]) ? :
397 0 3 defined $arg->{'level'} ? :
398 0 3 defined $arg->{'fatal'} ? :
415 5 0 unless $self->is_debug
417 0 0 &_HASH0($rest[0]) ? :
419 0 0 defined $arg->{'level'} ? :
498 8 6 &_ARRAY0($data) ? :
505 0 14 if $self->get_muted
525 3 0 unless $self->get_debug
539 0 0 $bool ? :
572 0 0 $bool ? :
678 5 33 if defined $ENV{$name}
740 0 46 unless $self->{'events'}
754 0 32 unless $self->{'events'}
797 0 0 $arg->{'debug'} ? :
0 11 exists $arg->{'debug'} ? :
800 8 3 if (my $ctx = $arg->{'proxy_ctx'})
803 1 7 &_ARRAY0($ctx) ? :