Branch Coverage

blib/lib/Test/Stream/Workflow/Unit.pm
Criterion Covered Total %
branch 33 42 78.5


line true false branch
29 1 1725 unless defined $_[0]{$_}
39 2 12 if ($thing =~ /^(\S+) (\d+)$/) { }
6 6 elsif ($thing =~ /^\d+$/) { }
67 0 2 unless ref $set and &reftype($set) eq 'ARRAY'
69 1 1 if $unit->_contains($file, $line, $name)
79 35 19 unless my $post = delete $self->{'post'}
100 74 42 unless my $list = $self->{$stash}
101 0 42 unless ref $list
102 0 42 unless &reftype($list) eq 'ARRAY'
103 0 42 unless @$list
105 0 42 unless my $top = $list->[0]
110 10 32 if defined $c_start and $c_start =~ /^\d+$/ and $c_start < $start
115 0 42 if $end and "$end" eq 'EOF'
116 0 42 unless defined $c_end
118 2 40 if $c_end =~ /^\d+$/ and $c_end > $end or "$c_end" eq 'EOF'
123 1 28 if ("$end" eq 'EOF') { }
124 0 1 if $start != $self->{'start_line'}
127 10 18 if $start != $end and $start != $self->{'start_line'}
128 1 27 if $end != $start and $end != $self->{'end_line'}
137 0 27 unless $self->type eq 'group'
164 9 738 if (my $todo = $self->meta->{'todo'})