Branch Coverage

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


line true false branch
23 2 18 unless $self->_has_condition or $self->_has_action
25 19 55 unless $self->_has_action
26 18 56 if not $self->_has_condition
44 3 6 if exists $opt{'if'}
47 3 3 unless exists $const{'if'} or $self->_has_blank_condition
48 2 7 if exists $opt{'do'}
50 7 2 unless exists $const{'do'}
52 2 7 exists $opt{'dont_record'} ? :
56 1 8 exists $opt{'continue_to_next'} ? :
64 1 8 if exists $opt->{'add_precondition'}
79 2 72 if $self->condition =~ /^\s*$/
103 139 18 if $self->_has_condition
104 140 17 if $self->_has_action
105 11 146 unless $self->_no_preconds
114 44 113 unless @inds
115 112 1 $inds[0] >= -$inds[-1] ? :
137 12 145 if /[~][a-z_][a-z0-9_]+/i
178 1 156 unless defined $sub
238 34 9 unless $self->continue_to_next
239 1 8 if not $self->dont_record
308 3 31 unless _check_parser_arg(@_)
310 2 29 unless $parser->auto_split
315 3 40 unless @_
317 1 39 unless defined &blessed($parser)
323 4 655 unless defined $parser->this_line
324 117 538 if $parser->NF < $self->min_nf
325 6 532 unless $self->_no_preconds or $self->_test_preconditions($parser)
327 48 484 if $self->_has_blank_condition
335 6 1 unless defined $val and $val
344 483 1 if defined $val
350 1 8 unless _check_parser_arg(@_)
352 1 7 unless $_[0]->auto_split
353 6 1 if @_ < 2
359 12 175 if nocontent($self->action)
361 79 96 if $self->dont_record
367 2 173 if $test_line and not defined $parser->this_line