Branch Coverage

blib/lib/Text/Xslate/Bridge/Star.pm
Criterion Covered Total %
branch 29 36 80.5


line true false branch
7 1 0 if (my $code = 're'->can('is_regexp')) { }
20 2 1 defined $_[0] ? :
24 2 1 defined $_[0] ? :
29 1 3 unless defined $str
30 0 3 unless defined $offset
31 2 1 unless defined $length
38 0 2 unless defined $fmt
39 1 1 if (@_) { }
50 6 0 defined $_[0] ? :
55 1 4 unless defined $str
56 0 4 unless defined $pattern
58 2 2 unless &_is_rx($pattern)
64 0 4 unless defined $str
65 0 4 unless defined $pattern
67 3 1 unless &_is_rx($pattern)
74 1 5 unless (defined $pattern)
77 4 2 unless &_is_rx($pattern)
78 1 5 if (defined $limit) { }