Branch Coverage

blib/lib/Data/Random/Structure.pm
Criterion Covered Total %
branch 16 32 50.0


line true false branch
21 0 1 if (scalar @_ % 2 != 0)
48 0 1 if (defined $max_depth)
60 0 1 if (defined $max_elements)
71 1 0 unless defined $depth
73 0 1 if ($depth > $self->max_depth)
83 0 1 if ($type eq 'HASH') { }
1 0 elsif ($type eq 'ARRAY') { }
91 1 0 if (not defined $ref) { }
0 0 elsif (ref $ref eq 'HASH') { }
0 0 elsif (ref $ref eq 'ARRAY') { }
103 0 1 if (rand 1 < 0.5) { }
118 1 2 if ($type eq 'float') { }
0 2 elsif ($type eq 'integer') { }
1 1 elsif ($type eq 'string') { }
1 0 elsif ($type eq 'bool') { }
128 1 0 rand 1 < 0.5 ? :