Branch Coverage

blib/lib/Event.pm
Criterion Covered Total %
branch 34 58 58.6


line true false branch
4 24 0 unless (eval { do { require attrs } })
40 0 32 if ($sym eq 'NO_TIME_HIRES') { }
47 24 0 unless ($NO_TIME_HIRES)
49 0 24 if ($@ =~ /^Can\'t locate Time/) { }
0 24 elsif ($@) { }
52 0 0 if $@
66 0 120 if $@
67 0 120 unless defined &$sub
74 0 0 unless _load_watcher($sub)
84 1 0 if ($run and $w = $run->w)
88 0 1 unless $m =~ /\n$/
97 0 1 unless $m =~ /\n$/
98 0 1 unless $e
107 1 10 if (not defined $v) { }
5 5 elsif ($v =~ /^-?\d+(\.\d+)?$/) { }
115 0 11 if ($@)
122 0 3 @_ ? :
128 2 3 if ($@)
144 2 115 if (@_)
146 1 1 if (not $loop_timer) { }
165 4 117 if ($@)
166 0 4 if $DebugLevel >= 4
173 3 114 if $loop_timer
175 112 5 unless defined $r
176 0 0 defined $r ? :
0 117 if $DebugLevel >= 3
182 122 1 if @_ & 1
186 0 4 if ref $v ne 'CODE'
209 0 0 if $language ne 'C'