Branch Coverage

blib/lib/Sub/Genius.pm
Criterion Covered Total %
branch 44 58 75.8


line true false branch
18 0 22 unless defined $self->{'preplan'}
21 16 6 unless (exists $self->{'preprocess'})
26 19 3 unless (exists $self->{'cachedir'})
35 16 6 if ($self->{'preprocess'})
50 67 1 $self->cachedir ? :
55 19 161 if ($dir)
57 1 18 unless (-d $self->{'cachedir'})
66 22 93 if ($sum)
84 7 45 if $line =~ /^\s*#|^\s*$/
94 0 16 if ($self->{'preplan'} =~ /[#\[\]]+/)
123 22 0 if ($pp)
132 48 126 if ($pp)
141 22 25 if ($pregex)
157 16 147 if ($dfa)
170 0 16 unless $self->pregex
176 0 16 if ($self->dfa->is_infinite)
177 0 0 unless ($self->{'allow-infinite'})
195 15 1 if (not $self->{'reset'} and $self->do_cache)
196 7 8 if (-e $self->cachefile)
202 9 0 if (not $self->dfa or defined $opts{'reset'})
206 8 1 if ($self->do_cache)
218 0 77 if $self->dfa->is_infinite
220 9 68 if (not defined $self->{'_acyclical_iterator'} or $opts{'reset'})
261 51 1 if (not defined $opts{'ns'}) { }
269 5 47 unless $self->plan
272 52 0 if (my $plan = $self->plan)
273 0 52 if ($opts{'verbose'})
282 0 311 if $@
305 0 0 if (not defined $self->{'_deepdft_iterator'} or $opts{'reset'})