Branch Coverage

blib/lib/Auto/Mata.pm
Criterion Covered Total %
branch 37 38 97.3


line true false branch
94 8 3 if ($with)
97 1 10 if (defined(my $error = $final->validate($state)))
98 1 0 if (my $explain = $final->validate_explain($state, 'FINAL_STATE'))
126 2 12 if $done
129 9 1 wantarray ? :
132 2 2 if $interactive
171 1 4 if $init == $next->{'initial'}
189 3 47 unless $_
191 2 45 unless (not defined(my $msg = $Automata->validate_explain($_, '$_')))
202 37 1 unless $DEBUG
225 1 9 unless $_->{'ready'}
228 1 8 unless $_->{'term'}
231 1 7 if $_->{'ready'} eq $_->{'term'}
234 1 6 unless keys %{$$_{'map'};}
238 1 5 unless $_->{'map'}{$_->{'ready'}} and @{$_->{'map'}{$_->{'ready'}};}
244 1 9 if $from eq $_->{'term'}
249 3 8 if ($to eq $_->{'term'})
255 1 7 unless exists $_->{'map'}{$to}
259 1 2 unless $is_terminated