Branch Coverage

blib/lib/ABNF/Generator.pm
Criterion Covered Total %
branch 42 122 34.4


line true false branch
65 0 2 unless @_ > 0
0 2 unless ($Method::Signatures::mutc{'cache'}{'ABNF::Grammar'} ||= 'Method::Signatures'->_make_constraint('ABNF::Grammar'))->check($_[0])
0 2 if @_ > 1 and not +($Method::Signatures::mutc{'cache'}{'ABNF::Validator'} ||= 'Method::Signatures'->_make_constraint('ABNF::Validator'))->check($_[1])
0 2 if @_ > 2
68 0 2 if $class eq 'ABNF::Generator'
83 0 2 if @_ > 0
109 0 0 unless @_ > 0
0 0 unless @_ > 1
0 0 if @_ > 2
125 0 0 unless @_ > 0
0 0 unless @_ > 1
0 0 if @_ > 2
141 0 0 unless @_ > 0
0 0 unless @_ > 1
0 0 if @_ > 2
157 0 0 unless @_ > 0
0 0 unless @_ > 1
0 0 if @_ > 2
173 0 0 unless @_ > 0
0 0 unless @_ > 1
0 0 if @_ > 2
189 0 0 unless @_ > 0
0 0 unless @_ > 1
0 0 if @_ > 2
205 0 0 unless @_ > 0
0 0 unless @_ > 1
0 0 if @_ > 2
221 0 0 unless @_ > 0
0 0 unless @_ > 1
0 0 if @_ > 2
245 0 939108 unless @_ > 0
0 939108 unless @_ > 1
0 939108 if @_ > 2
249 649723 289385 if (ref $rule) { }
130987 158398 elsif (exists $$ABNF::Generator::BASIC_RULES{$rule}) { }
250 0 649723 unless UNIVERSAL::isa($rule, 'HASH')
257 0 939108 unless $$self{'handlers'}{$$rule{'class'}}
279 0 42 unless @_ > 0
0 42 unless ($Method::Signatures::mutc{'cache'}{'Str'} ||= 'Method::Signatures'->_make_constraint('Str'))->check($_[0])
0 42 if @_ > 1 and not +($Method::Signatures::mutc{'cache'}{'Str'} ||= 'Method::Signatures'->_make_constraint('Str'))->check($_[1])
0 42 @_ > 1 ? :
0 42 if @_ > 2
280 2 40 unless $$self{'_grammar'}->hasCommand($rule)
283 21 19 unless (@{$$self{'_cache'}{$rule};})
289 0 40 if $@
290 40 0 $result =~ /$rx/u ? :
305 0 6 unless @_ > 0
0 6 unless ($Method::Signatures::mutc{'cache'}{'Str'} ||= 'Method::Signatures'->_make_constraint('Str'))->check($_[0])
0 6 if @_ > 1 and not +($Method::Signatures::mutc{'cache'}{'Str'} ||= 'Method::Signatures'->_make_constraint('Str'))->check($_[1])
6 0 @_ > 1 ? :
0 6 if @_ > 2
306 2 4 unless $$self{'_grammar'}->hasCommand($name)
311 0 4 if $@
312 0 4 $prefix =~ /$rx/u ? :
323 0 3 unless @_ > 0
0 3 unless ($Method::Signatures::mutc{'cache'}{'Str'} ||= 'Method::Signatures'->_make_constraint('Str'))->check($_[0])
0 3 if @_ > 1
339 0 360379 unless @_ > 0
0 360379 if @_ > 1
345 0 109225 unless @$value
352 0 130986 unless @$ends