Branch Coverage

blib/lib/String/MatchInterpolate.pm
Criterion Covered Total %
branch 26 30 86.6


line true false branch
159 1 11 $opts{'delimiters'} ? :
163 40 42 if ($template =~ s/^$delim_open//) { }
165 38 2 length $1 ? :
167 1 39 if exists $vars{$var}
172 37 2 if ($template =~ m[^/]) { }
2 0 elsif ($opts{'default_re'}) { }
185 0 39 unless $template =~ s/^$delim_close//
210 1 10 if ($opts{'allow_suffix'})
224 0 11 if $@
232 10 1 if (@interpparts < 10) { }
240 0 11 if $@
265 4 13 unless my $vars = $$self{'matchsub'}($str)
267 10 3 unless wantarray
270 1 2 if exists $$vars{'_suffix'}
287 5 2 if (ref $_[0] eq 'HASH') { }