Branch Coverage

blib/lib/TAP/Parser/IteratorFactory.pm
Criterion Covered Total %
branch 25 32 78.1


line true false branch
74 0 179 unless UNIVERSAL::can($dclass, 'can_handle') and UNIVERSAL::can($dclass, 'make_iterator')
80 179 0 unless grep {$_ eq $dclass;} @{$handlers;}
107 608 306 unless @_
108 1 305 unless ('HASH' eq ref $_[0])
117 11 302 unless @_
124 302 11 unless @_
166 3 5 if UNIVERSAL::can($dclass, 'can_handle') and UNIVERSAL::can($dclass, 'make_iterator')
171 3 2 if (my $e = $@)
176 2 0 if UNIVERSAL::can($dclass, 'can_handle') and UNIVERSAL::can($dclass, 'make_iterator')
201 0 304 unless defined $source->raw
208 0 304 if $source->meta->{'is_object'} and UNIVERSAL::isa($source->raw, 'TAP::Parser::SourceHandler')
214 11 291 if $self->_testing
243 0 304 unless defined $source->raw
251 313 1216 if $confidence
254 2 302 unless (%handlers)
273 0 302 if ($ENV{'TAP_HARNESS_SOURCE_FACTORY_VOTES'})