Branch Coverage

blib/lib/Tstregex.pm
Criterion Covered Total %
branch 37 102 36.2


line true false branch
209 0 15 if ($INC{'perl5db.pl'})
222 0 0 if (scalar @args > 1 and scalar @args % 2 == 0 and not ref $args[0])
240 0 0 defined &main::CUU ? :
252 0 0 if (not $argc or $argc and $argv->[0] =~ /^-h|--help$/)
258 0 0 if (not $mode_diag and $argv->[$i] =~ /^-d|--diag$/)
259 0 0 if (not $verbose and $argv->[$i] =~ /^-v|--verbose$/)
260 0 0 if (not $assert and $argv->[$i] =~ /^-a|--assert$/)
263 0 0 if ($assert)
273 0 0 if defined $_
283 0 0 if $mode_diag
285 0 0 if $result
286 0 0 $mode_diag ? :
288 0 0 if ($verbose)
290 0 0 $result ? :
291 0 0 $result ? :
294 0 0 if $verbose and $ctx->{'warning'} ne ""
313 0 0 if (not $found_data_token) { }
315 0 0 if /^__(DATA|END)__/
320 0 0 if /^__(DATA|END)__/
322 0 0 if /^\s*$/ or /^#/
324 0 0 unless $re
325 0 0 if $_ ne 0
329 0 0 if $verbose and $ctx->{'warning'} ne ""
333 0 0 if $mode_diag
335 0 0 $mode_diag ? :
354 0 0 if (Tstregex::tstregex_is_full_match($ctx))
371 0 0 if (Tstregex::tstregex_is_full_match($ctx))
475 1 114 if ($ctx->{'prefix_offset'} > 0 and length $pattern >= $ctx->{'prefix_offset'} + 1)
479 1 0 if ($pat_first_char == $re_delim_char)
488 68 47 if ($pattern =~ /$ctx->{'re_compiled'}/)
504 21 1 if (defined $-[$i]) { }
524 35 79 if ($pattern =~ qr/$step/)
535 35 12 $match_reg ne '' ? :
541 34 83 if $pattern =~ /$match_work/
547 47 0 scalar @{$ctx->{'steps'};} ? :
550 47 0 if ($remaining_re ne '') { }
556 4 43 if $first_token =~ /^(\\b|\^|\$)$/
565 0 47 $ctx->{'match_undef'} ? :
577 0 115 $re_compiled eq \'(?^:\\0)' ? :
601 0 115 if not defined $raw or $raw eq ""
617 0 115 if $off < 0
621 0 115 $options ? :
648 0 115 if not defined $raw or $raw eq ""
654 50 65 if ($raw =~ /^((?:m\s*)?)([^\w\s])(.*)$/s)
675 26 24 if ($open eq "(" and not $prefix)
681 1 23 if (substr($body, -1) eq $expected_close)
687 0 23 if $prefix
704 412 0 if ($opens >= $closes)
708 409 3 if (eval { do { qr/$v/ } })
711 412 0 if defined $last
754 71 490 if (defined $t and $t =~ /^[\+\*\?]$|^\{\d/ and @groups and not $groups[-1] =~ /^[\(\)\|]$/) { }