Branch Coverage

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


line true false branch
172 0 15 if ($INC{'perl5db.pl'})
185 0 0 if (scalar @args > 1 and scalar @args % 2 == 0 and not ref $args[0])
203 0 0 defined &main::CUU ? :
215 0 0 if (not $argc or $argc and $argv->[0] =~ /^-h|--help$/)
221 0 0 if (not $mode_diag and $argv->[$i] =~ /^-d|--diag$/)
222 0 0 if (not $verbose and $argv->[$i] =~ /^-v|--verbose$/)
223 0 0 if (not $assert and $argv->[$i] =~ /^-a|--assert$/)
226 0 0 if ($assert)
236 0 0 if defined $_
246 0 0 if $mode_diag
248 0 0 if $result
249 0 0 $mode_diag ? :
251 0 0 if ($verbose)
253 0 0 $result ? :
254 0 0 $result ? :
257 0 0 if $verbose and $ctx->{'warning'} ne ""
276 0 0 if (not $found_data_token) { }
278 0 0 if /^__(DATA|END)__/
283 0 0 if /^__(DATA|END)__/
285 0 0 if /^\s*$/ or /^#/
287 0 0 unless $re
288 0 0 if $_ ne 0
292 0 0 if $verbose and $ctx->{'warning'} ne ""
296 0 0 if $mode_diag
298 0 0 $mode_diag ? :
308 0 0 if (tstregex::tstregex_is_full_match($ctx)) { }
329 0 0 if (tstregex::tstregex_is_full_match($ctx)) { }
429 1 114 if ($ctx->{'prefix_offset'} > 0 and length $pattern >= $ctx->{'prefix_offset'} + 1)
433 1 0 if ($pat_first_char == $re_delim_char)
442 68 47 if ($pattern =~ /$ctx->{'re_compiled'}/)
458 21 1 if (defined $-[$i]) { }
478 35 79 if ($pattern =~ qr/$step/)
489 35 12 $match_reg ne '' ? :
495 34 83 if $pattern =~ /$match_work/
501 47 0 scalar @{$ctx->{'steps'};} ? :
504 47 0 if ($remaining_re ne '') { }
510 4 43 if $first_token =~ /^(\\b|\^|\$)$/
519 0 47 $ctx->{'match_undef'} ? :
531 0 115 $re_compiled eq \'(?^:\\0)' ? :
555 0 115 if not defined $raw or $raw eq ""
571 0 115 if $off < 0
575 0 115 $options ? :
602 0 115 if not defined $raw or $raw eq ""
608 50 65 if ($raw =~ /^((?:m\s*)?)([^\w\s])(.*)$/s)
629 26 24 if ($open eq "(" and not $prefix)
635 1 23 if (substr($body, -1) eq $expected_close)
641 0 23 if $prefix
658 412 0 if ($opens >= $closes)
662 409 3 if (eval { do { qr/$v/ } })
665 412 0 if defined $last
708 71 490 if (defined $t and $t =~ /^[\+\*\?]$|^\{\d/ and @groups and not $groups[-1] =~ /^[\(\)\|]$/) { }