Branch Coverage

blib/lib/Parse/RandGen/Condition.pm
Criterion Covered Total %
branch 32 76 42.1


line true false branch
35 0 18 unless defined $element
45 0 18 if $type eq 'Parse::RandGen::Condition'
57 6 12 if (defined $args{'quant'})
59 3 3 if $quant eq '+' or $quant eq 's'
60 0 6 if $quant eq '*' or $quant eq 's?'
61 0 6 if $quant eq '?'
62 1 5 if ($quant =~ /\{(\d+)(,(\d*))?\}/)
64 0 1 if (defined $2) { }
70 0 6 unless defined $args{'min'}
77 15 3 defined $self->max ? :
78 0 18 unless $self->isQuantSupported or $self->once
96 0 998 unless my $self = shift()
98 0 998 unless defined $val
104 0 202 unless my $self = shift()
108 56 0 unless ($args{'match'} or $self->zeroOrMore)
109 31 25 if (int rand 2) { }
117 25 177 if ($corruptCnt) { }
118 14 11 if (int rand 2 || !$self->max and $self->min) { }
131 31 171 $corruptData ? :
142 0 3686 unless my $self = shift()
153 0 392 unless my $self = shift()
158 0 267 unless my $self = shift()
163 0 12 unless my $self = shift()
168 0 157 unless my $self = shift()
173 0 0 unless my $self = shift()
174 0 0 $self->isGreedy ? :
180 0 0 if (&$arrayEq(@minmax, 0, undef)) { }
0 0 elsif (&$arrayEq(@minmax, 1, undef)) { }
0 0 elsif (&$arrayEq(@minmax, 0, 1)) { }
0 0 elsif (&$arrayEq(@minmax, 1, 1)) { }
190 0 0 defined $self->max ? :
191 0 0 if ($max and $self->min == $self->max) { }
201 0 0 unless my $self = shift()
206 0 0 unless my $self = shift()
211 0 0 unless my $self = shift()
212 0 0 if defined $self->production
217 0 0 unless my $self = shift()
218 0 0 if defined $self->rule