Branch Coverage

blib/lib/Text/Parser/Rule.pm
Criterion Covered Total %
branch 50 50 100.0


line true false branch
35 28 46 unless @inds
36 45 1 $inds[0] >= -$inds[-1] ? :
58 7 67 if /[~][a-z_][a-z0-9_]+/i
99 1 73 unless defined $sub
138 61 13 if $self->_has_condition
139 69 5 if $self->_has_action
140 10 64 unless $self->_no_preconds
183 10 5 unless $self->continue_to_next
184 1 4 if not $self->dont_record
199 1 13 unless $self->_has_condition or $self->_has_action
201 5 27 unless $self->_has_action
202 13 19 if not $self->_has_condition
260 3 308 unless _check_parser_arg(@_)
262 63 245 if not $parser->auto_split or $parser->NF < $self->min_nf
263 6 239 unless $self->_test_preconditions($parser)
268 3 418 unless @_
270 1 417 unless defined &blessed($parser)
278 6 1 unless defined $val and $val
286 1 238 unless defined $parser->this_line
288 237 1 if defined $val
294 1 109 unless _check_parser_arg(@_)
295 13 96 if nocontent($self->action) or not $_[0]->auto_split
296 94 2 if @_ == 1
298 16 80 if $self->dont_record
304 2 94 if $test_line and not defined $parser->this_line