Branch Coverage

blib/lib/FSM/Basic.pm
Criterion Covered Total %
branch 35 52 67.3


line true false branch
213 40015 0 if (exists $self->{'states_list'})
214 1 40014 if (exists $self->{'states_list'}{$self->{'state'}} and exists $self->{'states_list'}{$self->{'state'}}{'repeat'} and $self->{'states_list'}{$self->{'state'}}{'repeat'} <= 0)
220 1 0 if (exists $self->{'states_list'}{$self->{'previous_state'}}{'not_matching_info_last'})
226 40014 0 if (exists $self->{'states_list'}{$self->{'state'}}{'expect'})
227 0 40014 if (exists $self->{'states_list'}{$self->{'state'}}{'info'})
231 0 40014 if (exists $self->{'states_list'}{$self->{'state'}}{'info_once'})
235 0 40005 if (exists $self->{'previous_output'} and $in eq '' and $self->{'previous_output'} =~ /\[(.+)\]/)
241 8 40006 if (exists $self->{'states_list'}{$self->{'state'}}{'expect'}{$in}) { }
245 40003 120012 if ($in =~ /$key/)
251 40011 3 if (ref $state eq 'HASH') { }
256 0 40011 if (exists $state->{'cmd'})
261 0 40011 if (exists $state->{'cmd_exec'})
267 0 40011 if (exists $state->{'exec'})
274 0 40011 if (exists $state->{'do'})
280 1 40010 if (exists $state->{'cat'})
287 20000 20011 if (exists $state->{'catRAND'})
296 20000 20011 if (exists $state->{'catWRAND'})
305 31785 8215 if rand $weight < $w
311 3 40008 if (exists $state->{'catSEQ'})
314 3 0 if (exists $state->{'catSEQ_idx'}) { }
324 2 1 if (-f $state_file)
340 3 0 if exists $self->{'states_list'}{$self->{'state'}}{'repeat'}
342 0 3 if (exists $self->{'states_list'}{$self->{'state'}}{'not_matching_info'})
356 0 0 if exists $self->{'states_list'}{$in}
361 0 3 unless open my $fh, '>', $file
363 0 3 unless close $fh