Branch Coverage

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


line true false branch
181 0 15 if ($INC{'perl5db.pl'})
194 0 0 if (scalar @args > 1 and scalar @args % 2 == 0 and not ref $args[0])
212 0 0 defined &main::CUU ? :
224 0 0 if (not $argc or $argc and $argv->[0] =~ /^-h|--help$/)
230 0 0 if (not $mode_diag and $argv->[$i] =~ /^-d|--diag$/)
231 0 0 if (not $verbose and $argv->[$i] =~ /^-v|--verbose$/)
232 0 0 if (not $assert and $argv->[$i] =~ /^-a|--assert$/)
235 0 0 if ($assert)
245 0 0 if defined $_
255 0 0 if $mode_diag
257 0 0 if $result
258 0 0 $mode_diag ? :
260 0 0 if ($verbose)
262 0 0 $result ? :
263 0 0 $result ? :
266 0 0 if $verbose and $ctx->{'warning'} ne ""
285 0 0 if (not $found_data_token) { }
287 0 0 if /^__(DATA|END)__/
292 0 0 if /^__(DATA|END)__/
294 0 0 if /^\s*$/ or /^#/
296 0 0 unless $re
297 0 0 if $_ ne 0
301 0 0 if $verbose and $ctx->{'warning'} ne ""
305 0 0 if $mode_diag
307 0 0 $mode_diag ? :
317 0 0 if (Tstregex::tstregex_is_full_match($ctx)) { }
338 0 0 if (Tstregex::tstregex_is_full_match($ctx)) { }
445 1 114 if ($ctx->{'prefix_offset'} > 0 and length $pattern >= $ctx->{'prefix_offset'} + 1)
449 1 0 if ($pat_first_char == $re_delim_char)
458 68 47 if ($pattern =~ /$ctx->{'re_compiled'}/)
474 21 1 if (defined $-[$i]) { }
494 35 79 if ($pattern =~ qr/$step/)
505 35 12 $match_reg ne '' ? :
511 34 83 if $pattern =~ /$match_work/
517 47 0 scalar @{$ctx->{'steps'};} ? :
520 47 0 if ($remaining_re ne '') { }
526 4 43 if $first_token =~ /^(\\b|\^|\$)$/
535 0 47 $ctx->{'match_undef'} ? :
547 0 115 $re_compiled eq \'(?^:\\0)' ? :
571 0 115 if not defined $raw or $raw eq ""
587 0 115 if $off < 0
591 0 115 $options ? :
618 0 115 if not defined $raw or $raw eq ""
624 50 65 if ($raw =~ /^((?:m\s*)?)([^\w\s])(.*)$/s)
645 26 24 if ($open eq "(" and not $prefix)
651 1 23 if (substr($body, -1) eq $expected_close)
657 0 23 if $prefix
674 412 0 if ($opens >= $closes)
678 409 3 if (eval { do { qr/$v/ } })
681 412 0 if defined $last
724 71 490 if (defined $t and $t =~ /^[\+\*\?]$|^\{\d/ and @groups and not $groups[-1] =~ /^[\(\)\|]$/) { }