Branch Coverage

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


line true false branch
47 61 13 if $self->_has_condition
48 69 5 if $self->_has_action
49 10 64 unless $self->_no_preconds
58 28 46 unless @inds
59 45 1 $inds[0] >= -$inds[-1] ? :
81 7 67 if /[~][a-z_][a-z0-9_]+/i
122 1 73 unless defined $sub
191 10 5 unless $self->continue_to_next
192 1 4 if not $self->dont_record
207 1 13 unless $self->_has_condition or $self->_has_action
209 5 27 unless $self->_has_action
210 13 19 if not $self->_has_condition
274 3 31 unless _check_parser_arg(@_)
276 2 29 unless $parser->auto_split
281 3 40 unless @_
283 1 39 unless defined &blessed($parser)
289 61 245 if $parser->NF < $self->min_nf
290 6 239 unless $self->_no_preconds or $self->_test_preconditions($parser)
292 48 191 if $self->_has_blank_condition
300 6 1 unless defined $val and $val
308 1 190 unless defined $parser->this_line
310 189 1 if defined $val
316 1 8 unless _check_parser_arg(@_)
317 1 7 unless $_[0]->auto_split
318 6 1 if @_ < 2
324 12 96 if nocontent($self->action)
326 16 80 if $self->dont_record
332 2 94 if $test_line and not defined $parser->this_line