Branch Coverage

blib/lib/Log/Defer.pm
Criterion Covered Total %
branch 24 38 63.1


line true false branch
16 4 0 if ($cb)
17 2 2 if (ref $cb eq 'CODE') { }
2 0 elsif (ref $cb eq 'HASH') { }
19 0 2 if $opts->{'cb'}
31 0 4 unless $cb and ref $cb eq 'CODE'
44 2 2 if (exists $msg->{'timers'})
46 1 4 if @$timer_entry == 2
85 10 3 if (not exists $self->{'verbosity'} or $verbosity <= $self->{'verbosity'})
88 1 9 if $logs[0] and ref $logs[0] eq 'CODE'
137 0 1 unless $self->{'msg'}{'logs'}
138 0 1 unless $msg->{'logs'}
145 0 1 unless $msg->{'timers'}
152 0 1 unless $self->{'msg'}{'timers'}
158 0 1 unless $self->{'msg'}{'data'}
0 1 unless $msg->{'data'}
161 0 1 unless @{$self->{'msg'}{'logs'};}
162 0 1 unless @{$self->{'msg'}{'timers'};}
163 0 1 unless keys %{$$self{'msg'}{'data'};}
174 0 30 if $time < 0