Branch Coverage

blib/lib/Text/Modify.pm
Criterion Covered Total %
branch 22 48 45.8


line true false branch
34 2 0 if (scalar @_ > 1) { }
36 1 1 if ($opts{'debug'})
38 8 2 if (exists $opts{$_})
39 8 0 defined $opts{$_} ? :
43 2 0 if ($$self{'writeto'})
46 0 2 if (not $$self{'writeto'} and $$self{'file'})
123 11 0 unless ($name)
126 0 11 unless %opts
128 0 1 unless ($opts{'replace'} or $opts{'insert'} or $opts{'delete'})
133 0 11 unless ($$self{'rule'}{$name})
144 0 0 if (exists $$self{'rule'}{$name}) { }
229 0 0 if (defined $ext)
241 0 0 if (-f $bakfile)
261 0 0 if ($bakfile and $bakfile ne $file)
273 0 2 if ($$self{'backup'})
276 0 0 if ($self->isError)
293 0 2 defined $$self{'data'} ? :
306 0 11 if ($rule->isError)
311 0 2 if ($self->isError)
316 2 0 if (not $$self{'dryrun'}) { }
319 0 2 unless ($$self{'_buffer'}->save($$self{'writeto'}))
358 0 4 (shift())->{'error'} ? :
375 0 59 if ($#_ == -1) { }
29 30 elsif ($$self{'_debug'}) { }