Branch Coverage

blib/lib/Set/FA/Element.pm
Criterion Covered Total %
branch 48 76 63.1


line true false branch
49 0 439 if (length $output >= length $input)
51 0 0 $_ ge ' ' && $_ le '~' ? :
0 0 $input ? :
53 0 0 $self->die_on_loop ? :
80 0 2 unless ($trigger =~ /^(entry|exit)$/)
105 0 124 if (ref($item ne 'ARRAY') or $#$item < 2)
115 0 124 unless (defined $state)
120 0 124 unless (defined($state && $rule && $next))
125 0 124 if (ref $rule eq 'CODE') { }
138 460 262 $input =~ /^$regexp(.*)/ ? :
144 55 69 if ($stt{$state}) { }
152 1 68 if ($action{$state} and $action{$state}{'entry'})
156 0 1 if (ref $entry_fn eq 'ARRAY') { }
167 1 68 if ($action{$state} and $action{$state}{'exit'})
171 0 1 if (ref $exit_fn eq 'ARRAY') { }
199 33 0 if ($stt{$state}) { }
210 0 33 unless ($stt{$state})
242 0 15 unless ref $data
244 0 15 if (reftype $data eq 'ARRAY') { }
15 0 elsif (reftype $data eq 'HASH') { }
0 0 elsif (reftype $data eq 'SCALAR') { }
275 36 81 defined $state ? :
314 0 1428 if ($level eq 'error')
319 0 1428 if ($self->logger) { }
14 1414 elsif ($self->verbose) { }
361 1 2 if ($$stt{$state}{'start'})
366 1 2 if ($$stt{$state}{'accept'})
371 0 3 if ($$stt{$state}{'entry_fn'})
376 0 3 if ($$stt{$state}{'exit_fn'})
412 1 1 ${$self->stt;}{$state} ? :
2 127 defined $state ? :
437 460 262 if (defined $match)
460 330 130 if $next eq $current
464 9 121 if ($$stt{$current}{'exit_fn'})
471 9 121 if ($$stt{$next}{'entry_fn'})
488 0 33 if (ref $self->accepting ne 'ARRAY' or $#{$self->accepting;} < 0)
493 0 33 unless ($self->start)
498 0 33 if (ref $self->transitions ne 'ARRAY' or $#{$self->transitions;} < 0)