Branch Coverage

blib/lib/Deeme/Obj.pm
Criterion Covered Total %
branch 52 58 89.6


line true false branch
26 13 21 unless my $flag = shift()
29 10 11 if ($flag eq '-base') { }
4 7 elsif ($flag eq '-strict') { }
5 2 elsif (my $file = $flag and not $flag->can('new')) { }
41 17 4 if ($flag)
50 0 21 if ($feature)
57 0 17 unless my $class = ref $self || $self and $attrs
59 1 16 if ref $default and ref $default ne 'CODE'
62 2 14 ref $attrs eq 'ARRAY' ? :
63 1 17 unless $attr =~ /^[a-zA-Z_]\w*$/
70 13 4 if (not defined $default) { }
81 2 2 ref $default eq 'CODE' ? :
93 0 17 if $ENV{'DEEME_OBJ_DEBUG'}
95 0 17 unless eval "$code;1"
197 2 if (@_ == 1)
11 6 if (@_ == 1)
16 1 if (@_ == 1)
3 1 if exists $_[0]{'coconuts'}
1 1 if (@_ == 1)
2 1 if exists $_[0]{'ears'}
1 0 if (@_ == 1)
1 1 if (@_ == 1)
2 1 if exists $_[0]{'eyes'}
1 1 if (@_ == 1)
2 1 if exists $_[0]{'heads'}
1 1 if (@_ == 1)
3 3 if (@_ == 1)
101 11 0 @_ > 1 ? :
11 12 @_ ? :