Branch Coverage

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


line true false branch
19 0 22 unless defined $self->{'preplan'}
22 16 6 unless (exists $self->{'preprocess'})
27 19 3 unless (exists $self->{'cachedir'})
36 16 6 if ($self->{'preprocess'})
51 67 1 $self->cachedir ? :
56 19 161 if ($dir)
58 1 18 unless (-d $self->{'cachedir'})
67 22 93 if ($sum)
85 7 45 if $line =~ /^\s*#|^\s*$/
95 0 16 if ($self->{'preplan'} =~ /[#\[\]]+/)
124 22 0 if ($pp)
133 48 126 if ($pp)
142 22 25 if ($pregex)
158 16 147 if ($dfa)
171 0 16 unless $self->pregex
177 0 16 if ($self->dfa->is_infinite)
178 0 0 unless ($self->{'allow-infinite'})
196 15 1 if (not $self->{'reset'} and $self->do_cache)
197 7 8 if (-e $self->cachefile)
203 9 0 if (not $self->dfa or defined $opts{'reset'})
207 8 1 if ($self->do_cache)
219 0 77 if $self->dfa->is_infinite
221 9 68 if (not defined $self->{'_acyclical_iterator'} or $opts{'reset'})
262 51 1 if (not defined $opts{'ns'}) { }
270 5 47 unless $self->plan
273 52 0 if (my $preplan = $self->plan)
274 0 52 if ($opts{'verbose'})
283 0 311 if $@
306 0 0 if (not defined $self->{'_deepdft_iterator'} or $opts{'reset'})