Branch Coverage

blib/lib/Class/Persistent/StructTemplate.pm
Criterion Covered Total %
branch 3 76 3.9


line true false branch
28 0 1 ref $_[0] ? :
30 0 1 if (@_ < 2)
39 0 1 if $@
40 0 0 unless ${"${pkg}::_PLUGIN";} = $plugin->new(@$plugin_parms)
42 0 0 unless Class::StructTemplate::attributes(\$pkg, @_)
46 0 0 unless _define_load($pkg)
53 0 0 if (@_ != 1)
76 0 0 if $@
82 0 0 if (@_ != 2)
89 0 0 ref $class ? :
93 0 0 if (ref $class) { }
96 0 0 if ($done != -1)
102 0 0 $done != -1 ? :
113 0 0 if (not $done and $done != -1)
127 0 0 if (@_ != 1)
133 0 0 unless ref $class
137 0 0 unless ($$class{'_changed'})
142 0 0 if ($$class{'_created'}) { }
151 0 0 if ($done)
162 0 0 if (@_ != 1)
168 0 0 unless ref $class
173 0 0 if ($$class{'_changed'} or not $$class{'_created'})
182 0 0 if (not $@ and $is_a)
188 0 0 if (${"${pkg}::_PLUGIN";}->calc_refs($class, $pkg) <= 1)
203 0 0 if (@_ != 3)
209 0 0 unless ref $class
215 0 0 if (exists $$attribs{$attrib}) { }
0 0 elsif (not $$class{'_allset'}) { }
232 0 0 if (@_ != 1)
238 0 0 unless ref $class
253 0 0 if (@_ != 2)
262 0 0 if ($type eq 'n' or $type eq 's') { }
0 0 elsif ($type eq 'c') { }
273 0 0 if $@
287 0 0 if (@_ != 1)
296 0 0 if (ref $val) { }
0 0 elsif ($val == 0 and $val ne '0') { }
299 0 0 if (not $@ and $is_a) { }