Branch Coverage

blib/lib/DBIx/Roles.pm
Criterion Covered Total %
branch 56 86 65.1


line true false branch
25 4 1 unless @_
44 3 1 if (@packages) { }
58 25 0 unless $p =~ /:/
59 17 8 if exists $DBIx::Roles::loaded_packages{$p}
61 0 8 if $@
87 11 19 unless $ref
92 13 6 if ($data)
96 0 40 if exists $$dst{$key}
108 0 18 if exists $$dst{$key}
135 0 4 unless (ref $self)
142 0 4 if $$inst{'dbh'}
155 0 2 unless exists $$inst{'defaults'}{$k}
162 2 38 if (exists $$attr{$k}) { }
171 4 0 if $$inst{'dbh'} = $inst->connect($dsn, $user, $password, $attr)
173 0 0 if $$attr{'RaiseError'}
187 0 0 if $$inst{'dbh'}
203 9 3 if (exists $DBI::DBI_methods{'common'}{$method} or exists $DBI::DBI_methods{'db'}{$method}) { }
1 2 elsif (exists $$inst{'vmt'}{$method}) { }
218 0 1 unless $ref
233 4 1 if $$inst{'dbh'}
252 695 29 if ($$ctx[0] < scalar @{$$self{'packages'};}) { }
11 18 elsif ($$ctx[2]) { }
255 0 695 if $$self{'disabled'}{$package}
256 488 207 unless $ref = $package->can($$ctx[1])
257 0 207 if $DBIx::Roles::debug
273 18 211 unless $ref
282 6 13 if ($#_) { }
293 24 50 if $_[0] and ref $_[0]
299 0 0 defined $_ ? :
300 0 74 if $DBIx::Roles::debug
303 4 70 if ($wa) { }
309 0 74 if $DBIx::Roles::debug
311 0 74 if $@
312 4 70 wantarray ? :
325 0 11 if $DBIx::Roles::debug
341 0 0 $p =~ /:/ ? :
342 0 0 if $$hash{$g} > 0
350 0 0 $p =~ /:/ ? :
358 23 12 unless $#_
417 0 4 if (exists $$self{'attr'}{$key}) { }
427 5 0 if (exists $$self{'attr'}{$key}) { }
437 9 8 if (exists $$self{'attr'}{$key}) { }
447 0 4 if (exists $$self{'attr'}{$key}) { }