Branch Coverage

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


line true false branch
24 13 21 unless my $flag = shift()
27 10 11 if ($flag eq '-base') { }
4 7 elsif ($flag eq '-strict') { }
5 2 elsif (my $file = $flag and not $flag->can('new')) { }
39 17 4 if ($flag)
48 0 21 if ($feature)
55 0 17 unless my $class = ref $self || $self and $attrs
57 1 16 if ref $default and ref $default ne 'CODE'
60 2 14 ref $attrs eq 'ARRAY' ? :
61 1 17 unless $attr =~ /^[a-zA-Z_]\w*$/
68 13 4 if (not defined $default) { }
79 2 2 ref $default eq 'CODE' ? :
91 0 17 if $ENV{'DEEME_OBJ_DEBUG'}
93 0 17 unless eval "$code;1"
200 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)
99 11 0 @_ > 1 ? :
11 12 @_ ? :