Branch Coverage

blib/lib/Async/Selector.pm
Criterion Covered Total %
branch 43 44 97.7


line true false branch
132 0 552 unless defined $watcher_entry
135 96 456 if ($watcher->get_check_all)
139 3 1097 unless defined $res_key
140 208 889 unless exists $conditions{$res_key}
141 125 764 unless defined $$self{'resources'}{$res_key}
144 392 372 if (defined $result)
149 265 287 unless $fired
187 8 104 unless (_isa_coderef($provider))
191 8 52 if (@error_keys)
281 6 240 unless (_isa_coderef($cb))
285 8 232 unless (%conditions)
304 6 221 unless $watcher->active
313 4 52 unless (_isa_coderef($cb))
319 23 86 unless exists $res{$selected_resource}
321 27 40 if (&$cb("$w", %res))
327 42 10 $watcher->active ? :
345 6 184 unless exists $$self{'watchers'}{"$w"}
370 3 339 unless (@resources)
403 2 26 unless defined $resource_name
428 205 360 unless (@resources)
435 77 979 unless defined $res
436 503 476 if (exists $watch_conditions{$res})