Branch Coverage

blib/lib/Module/AnyEvent/Helper.pm
Criterion Covered Total %
branch 17 24 70.8


line true false branch
21 0 24 unless $func =~ /_async$/
34 0 0 if eval { do { $_[0]->isa('Module::AnyEvent::Helper') } }
41 1 8 if eval { do { $_[0]->isa('Module::AnyEvent::Helper') } }
47 25 38 if /_async$/ and defined *{$pkg . '::' . $_;}{'CODE'}
54 4 52 if eval { do { $_[0]->isa('Module::AnyEvent::Helper') } }
57 0 56 if (not defined $lcv or ref $lcv ne 'AnyEvent::CondVar')
62 0 56 unless ref $succ eq 'CODE'
68 32 22 if ref $ret ne 'CODE' or $ret != $guard
78 2 12 if eval { do { $_[0]->isa('Module::AnyEvent::Helper') } }
81 0 14 if (not defined $lcv or ref $lcv ne 'AnyEvent::CondVar')
86 0 14 unless ref $succ eq 'CODE'
92 8 4 if @ret != 1 or ref $ret[0] ne 'CODE' or $ret[0] != $guard