Branch Coverage

blib/lib/ABNF/Generator/Honest.pm
Criterion Covered Total %
branch 43 86 50.0


line true false branch
56 0 1 unless @_ > 0
0 1 unless ($Method::Signatures::mutc{'cache'}{'ABNF::Grammar'} ||= 'Method::Signatures'->_make_constraint('ABNF::Grammar'))->check($_[0])
0 1 if @_ > 1 and not +($Method::Signatures::mutc{'cache'}{'ABNF::Validator'} ||= 'Method::Signatures'->_make_constraint('ABNF::Validator'))->check($_[1])
0 1 if @_ > 2
57 1 0 $validator ? :
76 0 76375 unless @_ > 0
0 76375 unless @_ > 1
0 76375 if @_ > 2
83 0 54612 unless @_ > 0
0 54612 unless @_ > 1
0 54612 if @_ > 2
91 0 38228 unless @_ > 0
0 38228 unless @_ > 1
0 38228 if @_ > 2
95 0 54613 unless @_ > 0
0 54613 unless @_ > 1
0 54613 if @_ > 2
101 21845 32768 if ($$recursion{'level'} < $RECURSION_LIMIT)
108 0 0 unless @_ > 0
0 0 unless @_ > 1
0 0 if @_ > 2
112 0 289364 unless @_ > 0
0 289364 unless @_ > 1
0 289364 if @_ > 2
116 0 54612 unless @_ > 0
0 54612 unless @_ > 1
0 54612 if @_ > 2
125 0 81919 unless @_ > 0
0 81919 unless @_ > 1
0 81919 if @_ > 2
128 32767 49152 if ($$recursion{'level'} < $RECURSION_LIMIT) { }
135 49152 0 if (not exists $$recursion{'choices'}{$a}) { }
0 0 elsif (not exists $$recursion{'choices'}{$b}) { }
152 0 289365 unless @_ > 0
0 289365 unless @_ > 1
0 289365 if @_ > 2
170 0 3 unless @_ > 0
0 3 unless ($Method::Signatures::mutc{'cache'}{'Str'} ||= 'Method::Signatures'->_make_constraint('Str'))->check($_[0])
0 3 if @_ > 1 and not +($Method::Signatures::mutc{'cache'}{'Str'} ||= 'Method::Signatures'->_make_constraint('Str'))->check($_[1])
2 1 @_ > 1 ? :
0 3 if @_ > 2
172 1 1 $$self{'_validator'}->validate($name, $result) ? :
185 0 1 if @_ > 0