Branch Coverage

blib/lib/Mock/Data/Util.pm
Criterion Covered Total %
branch 45 54 83.3


line true false branch
36 13 18 if index($tpl, "{") == -1
40 14 2 ref $cmp->{'_compiled'} ? :
2 16 !$cmp ? :
46 2 0 ref $spec eq 'Regexp' ? :
7 2 ref($spec)->can('generate') ? :
72 9 ref $spec eq 'CODE' ? :
0 81 ref $spec eq 'HASH' ? :
13 81 ref $spec eq 'ARRAY' ? :
70 94 !ref($spec) ? :
0 164 if (not defined $spec) { }
56 1 2 ref $_ eq 'ARRAY' ? :
11 3 if (not ref $_) { }
67 0 13 unless @to_add
70 0 13 defined $Mock::Data::auto_subclasses{$class} ? :
74 2 24 if grep $_->isa($next_class), @new_isa
81 3 10 if (@new_isa == 1) { }
86 8 2 unless ($Mock::Data::auto_subclasses{$new_class})
92 1 12 ref $self ? :
125 55 24 unless $_escape_common{$1}
130 23 44 if @_
134 33 11 &Scalar::Util::looks_like_number($_) ? :
19 0 ref $_ eq 'HASH' ? :
4 19 ref $_ eq 'ARRAY' ? :
44 23 !ref($_) ? :
0 67 if (not defined $_) { }
138 23 0 $_ =~ /^\w+\z/ ? :
144 0 2 defined $_[0] ? :