Branch Coverage

blib/lib/Log/Fast.pm
Criterion Covered Total %
branch 68 144 47.2


line true false branch
82 1 10 if ref $opt ne 'HASH'
118 2 47 if ref $opt ne 'HASH'
121 1 166 unless (exists {add_hostname => 0, add_pid => 1, add_timestamp => 1, facility => 8, fh => \undef, hostname => '5fc9c407157c', ident => '00.load.t', level => 'DEBUG', path => '/dev/log', pid => 5135, prefix => '', type => 'fh'}->{$key})
128 14 31 if ($$self{'type'} eq 'unix')
140 52 2 if (defined $level)
141 2 50 unless (exists {DEBUG => 7, ERR => 3, INFO => 6, NOTICE => 5, WARN => 4}->{$level})
153 17 1 if (defined $ident)
164 0 14 unless socket $$self{'_sock'}, 1, 2, 0
165 0 14 unless connect $$self{'_sock'}, sockaddr_un($$self{'path'})
172 3 14 if ($$self{'add_timestamp'})
176 3 14 if ($$self{'add_hostname'})
182 4 13 if ($$self{'add_pid'})
200 236 14 $is_active ? :
226 20 206 if ($feature{'S'}) { }
20 186 elsif ($feature{'D'} or $feature{'T'} or $feature{'timestamp'}) { }
238 25 201 if ($feature{'D'} or $feature{'T'})
248 15 211 if ($feature{'timestamp'})
260 30 435 if ($pfx eq '%L') { }
25 410 elsif ($pfx eq '%S') { }
25 385 elsif ($pfx eq '%D') { }
25 360 elsif ($pfx eq '%T') { }
30 330 elsif ($pfx eq '%P') { }
30 300 elsif ($pfx eq '%F') { }
30 270 elsif ($pfx eq '%_') { }
25 245 elsif ($pfx eq '%%') { }
310 155 71 if ($$self{'type'} eq 'fh') { }
70 1 elsif ($$self{'type'} eq 'unix') { }
336 0 0 ref $_ eq 'CODE' ? :
1 0 @_ == 1 ? :
0 1 unless print {$$self{'fh'};} $prefix, $msg, "\n"
0 0 ref $_ eq 'CODE' ? :
1 0 @_ == 1 ? :
0 1 unless print {$$self{'fh'};} $prefix, $msg, "\n"
0 0 ref $_ eq 'CODE' ? :
4 0 @_ == 1 ? :
0 4 unless print {$$self{'fh'};} $prefix, $msg, "\n"
0 0 ref $_ eq 'CODE' ? :
3 0 @_ == 1 ? :
0 3 unless print {$$self{'fh'};} $prefix, $msg, "\n"
0 0 ref $_ eq 'CODE' ? :
8 0 @_ == 1 ? :
0 3 unless print {$$self{'fh'};} $prefix, $msg, "\n"
0 0 ref $_ eq 'CODE' ? :
1 0 @_ == 1 ? :
0 0 unless print {$$self{'fh'};} $prefix, $msg, "\n"
0 0 ref $_ eq 'CODE' ? :
0 0 @_ == 1 ? :
0 0 unless print {$$self{'fh'};} $prefix, $msg, "\n"
0 0 ref $_ eq 'CODE' ? :
0 0 @_ == 1 ? :
0 0 unless print {$$self{'fh'};} $prefix, $msg, "\n"
0 0 ref $_ eq 'CODE' ? :
2 0 @_ == 1 ? :
2 0 unless print {$$self{'fh'};} $prefix, $msg, "\n"
0 1 ref $_ eq 'CODE' ? :
27 0 @_ == 1 ? :
0 28 unless print {$$self{'fh'};} $prefix, $msg, "\n"
0 0 ref $_ eq 'CODE' ? :
0 0 @_ == 1 ? :
0 0 unless print {$$self{'fh'};} $prefix, $msg, "\n"
0 0 ref $_ eq 'CODE' ? :
0 0 @_ == 1 ? :
0 0 unless print {$$self{'fh'};} $prefix, $msg, "\n"
0 0 ref $_ eq 'CODE' ? :
0 0 @_ == 1 ? :
0 0 unless print {$$self{'fh'};} $prefix, $msg, "\n"
0 0 ref $_ eq 'CODE' ? :
0 0 @_ == 1 ? :
0 0 unless print {$$self{'fh'};} $prefix, $msg, "\n"
0 0 ref $_ eq 'CODE' ? :
0 0 @_ == 1 ? :
0 0 unless print {$$self{'fh'};} $prefix, $msg, "\n"