Branch Coverage

blib/lib/KelpX/Sweet.pm
Criterion Covered Total %
branch 31 66 46.9


line true false branch
27 0 7 if ($opts{'-auto'})
42 0 6 if $auto
46 0 6 unless (ref $route_names eq 'ARRAY')
55 0 6 if ($@)
83 0 6 if (scalar keys %$configs > 0)
90 6 0 if ($$config{'models'})
94 0 6 unless (ref $$config{'models'} eq 'HASH')
103 0 6 if ($@)
108 6 0 if (my $ret = $mod->build(@args)) { }
109 6 0 if (ref $ret) { }
112 0 6 if (ref $ret eq 'HASH') { }
114 0 0 if (ref $$ret{$key})
126 6 0 if (grep {$_ eq 'DBIx::Class::Schema';} @{mro::get_linear_isa($dbref);})
127 6 0 if ($dbref->can('sources'))
146 6 0 if (scalar keys %{$$self{'_models'};} > 0)
154 6 30 if ($$route{$url}{'bridge'}) { }
0 30 elsif ($$route{$url}{'type'} eq 'any') { }
173 1 0 if ($fullpath =~ /.+::(.+)$/)
177 1 0 if ($name)
178 0 1 if $ENV{'KELPX_SWEET_DEBUG'}
184 7 0 unless ($caller->can('has'))
191 7 0 unless ($caller->can('around'))
212 6 0 if (%attrs)
213 6 0 if ($attrs{'is'} eq 'ro')
214 6 0 if ($attrs{'required'})
215 6 0 if ($attrs{'default'})
217 6 0 if ($df)
218 0 6 unless ref $df eq 'CODE'
227 0 1 if ($rq and not $df)
228 0 0 unless ($_[0]{$acc} or $_[1])
233 1 0 if ($df)
235 0 1 if (@_ == 2)
236 0 0 if $ro