Branch Coverage

blib/lib/Object/Simple.pm
Criterion Covered Total %
branch 69 102 67.6


line true false branch
16 3 9 unless @_
23 8 1 unless (grep {$_[0] eq $_;} 'new', 'attr')
28 8 1 if ($no_export_syntax) { }
33 8 0 if (defined $arg1)
35 7 1 if ($arg1 =~ /^-/) { }
36 6 1 if ($arg1 eq '-base') { }
37 2 4 if (defined $arg2)
57 3 4 if ($base_class) { }
82 0 2 unless $exports{$method}
95 4 4 @_ > 1 ? :
8 16 @_ ? :
104 5 9 if @args % 2
108 2 15 if ($i == 2)
114 14 3 unless ref $attrs eq 'ARRAY'
121 0 20 unless $attr =~ /^[a-zA-Z_]\w*$/
127 7 13 if (not defined $default) { }
132 1 12 if ref $default and ref $default ne 'CODE'
140 3 9 ref $default eq 'CODE' ? :
151 0 19 if $ENV{'OBJECT_SIMPLE_DEBUG'}
152 0 19 unless eval "$code;1"
0 2 if exists $_[0]{'z'}
2 0 if (@_ == 1)
0 2 if exists $_[0]{'m12'}
2 0 if (@_ == 1)
1 1 if (@_ == 1)
0 1 if exists $_[0]{'m18'}
1 0 if (@_ == 1)
0 0 if (@_ == 1)
0 1 if exists $_[0]{'m37'}
1 0 if (@_ == 1)
8 3 if (@_ == 1)
0 1 if exists $_[0]{'m19'}
1 0 if (@_ == 1)
0 3 if exists $_[0]{'z'}
3 0 if (@_ == 1)
0 0 if (@_ == 1)
1 2 if exists $_[0]{'m11'}
3 2 if (@_ == 1)
1 1 if (@_ == 1)
0 1 if exists $_[0]{'m35'}
1 0 if (@_ == 1)
0 6 if exists $_[0]{'x'}
6 0 if (@_ == 1)
0 6 if exists $_[0]{'y'}
6 0 if (@_ == 1)
0 0 if (@_ == 1)
1 1 if (@_ == 1)
0 1 if exists $_[0]{'m38'}
1 0 if (@_ == 1)
0 1 if exists $_[0]{'m36'}
1 0 if (@_ == 1)