Branch Coverage

blib/lib/Array/Stream/Transactional/Matcher.pm
Criterion Covered Total %
branch 17 24 70.8


line true false branch
28 53 0 unless ($type =~ /^Array::Stream::Transactional::Matcher::/)
37 0 20 unless exists $args{'rules'} and ref $args{'rules'} eq 'ARRAY'
41 1 19 if (exists $args{'call'}) { }
42 0 1 unless ref $args{'call'} eq 'CODE'
50 19 3 if (ref $_ eq 'ARRAY') { }
3 0 elsif (UNIVERSAL::isa($_, 'Array::Stream::Transactional::Matcher::Rule')) { }
52 0 19 unless UNIVERSAL::isa($rule, 'Array::Stream::Transactional::Matcher::Rule')
53 0 19 unless ref $callback eq 'CODE'
73 0 20 unless UNIVERSAL::isa($stream, 'Array::Stream::Transactional')
82 47 102 if ($match)
83 35 12 $start == $stream->pos ? :
90 134 6 unless $match == -1