Branch Coverage

blib/lib/App/SimpleScan/Substitution.pm
Criterion Covered Total %
branch 35 46 76.0


line true false branch
75 6 2 if ($arg_ref)
76 4 2 if (ref $arg_ref eq 'HASH') { }
77 2 2 if (exists $$arg_ref{'dictionary'})
78 1 1 if (ref $$arg_ref{'dictionary'} eq 'HASH') { }
85 2 1 if (exists $$arg_ref{'find_vars_callback'})
86 1 1 if (ref $$arg_ref{'find_vars_callback'} eq 'CODE') { }
121 32 20 unless @vars
135 7 32 if (@deeper) { }
152 0 2 if @lines == 0
155 2 0 if (@lines == 1) { }
157 0 2 unless $self->find_vars_callback->($lines[0])
185 0 10 unless @line_objs
188 1 9 if @line_objs > 1
210 0 9 unless @var_names
266 20 0 if ($did_change)
275 6 8 $self->find_vars_callback->($string_to_alter) ? :
282 3 6 if (@expansion_queue) { }
302 116 0 if (defined $value_ref) { }
343 0 248 unless (defined $pragma_name)
346 4 244 if (@pragma_values)
351 12 0 exists $self->dictionary->{$pragma_name} ? :
12 236 wantarray ? :
358 0 0 unless defined $substitution_name