Branch Coverage

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


line true false branch
103 8 3 if ($with)
106 1 10 if (defined(my $error = $final->validate($state)))
107 1 0 if (my $explain = $final->validate_explain($state, 'FINAL_STATE'))
136 2 12 if $done
139 9 1 wantarray ? :
142 2 2 if $interactive
181 2 5 if $init == $next->{'initial'}
199 3 48 unless $_
201 2 46 unless (not defined(my $msg = $Automata->validate_explain($_, '$_')))
212 38 1 unless $DEBUG
235 1 9 unless $_->{'ready'}
238 1 8 unless $_->{'term'}
241 1 7 if $_->{'ready'} eq $_->{'term'}
244 1 6 unless keys %{$$_{'map'};}
248 1 5 unless $_->{'map'}{$_->{'ready'}} and @{$_->{'map'}{$_->{'ready'}};}
254 1 9 if $from eq $_->{'term'}
259 4 7 if ($to eq $_->{'term'})
265 1 6 unless exists $_->{'map'}{$to}
269 1 2 unless $is_terminated