Branch Coverage

blib/lib/DBIx/Custom/Model.pm
Criterion Covered Total %
branch 74 110 67.2


line true false branch
40 2 5 @_ % 2 ? :
7 0 exists $self->{'table'} ? :
0 7 exists $self->{'type'} ? :
7 0 exists $self->{'primary_key'} ? :
7 0 exists $self->{'bind_type'} ? :
7 3 @_ % 2 ? :
3 6 exists $self->{'table'} ? :
6 3 exists $self->{'type'} ? :
3 6 exists $self->{'primary_key'} ? :
9 0 exists $self->{'bind_type'} ? :
6 3 exists $self->{'mtime'} ? :
24 2 @_ % 2 ? :
38 3 exists $self->{'table'} ? :
21 20 exists $self->{'type'} ? :
23 18 exists $self->{'primary_key'} ? :
41 0 exists $self->{'bind_type'} ? :
38 0 exists $self->{'join'} ? :
36 0 @_ % 2 ? :
18 0 exists $self->{'table'} ? :
0 0 exists $self->{'type'} ? :
0 0 exists $self->{'primary_key'} ? :
1 36 exists $self->{'bind_type'} ? :
37 0 exists $self->{'ctime'} ? :
0 37 exists $self->{'mtime'} ? :
37 3 @_ % 2 ? :
40 0 exists $self->{'table'} ? :
37 3 exists $self->{'type'} ? :
5 0 exists $self->{'primary_key'} ? :
7 0 exists $self->{'bind_type'} ? :
2 2 @_ % 2 ? :
2 2 exists $self->{'table'} ? :
4 0 exists $self->{'type'} ? :
4 0 exists $self->{'primary_key'} ? :
26 0 exists $self->{'bind_type'} ? :
26 72 exists $self->{'join'} ? :
74 24 @_ % 2 ? :
24 74 exists $self->{'table'} ? :
98 0 exists $self->{'type'} ? :
98 0 exists $self->{'primary_key'} ? :
98 0 exists $self->{'bind_type'} ? :
46 164 3 if (@_ == 1)
61 0 8 unless defined $opt{'id'} || defined $self->{'id'} and defined $opt{'primary_key'} || defined $self->{'primary_key'}
64 8 0 unless $statement_opt->{'select'}
65 5 3 if (@$rows == 0) { }
0 3 elsif (@$rows == 1) { }
66 5 0 unless $statement_opt->{'insert'}
69 0 0 unless $statement_opt->{'update'}
85 3 30 if (my $method = $self->{'_methods'}{$mname}) { }
30 0 elsif (my $dbi_method = $self->dbi->can($mname)) { }
0 0 elsif ($self->{'dbh'} and my $dbh_method = $self->dbh->can($mname)) { }
108 0 3 ref $_[0] eq 'HASH' ? :
109 3 0 unless $self->{'_methods'}
116 18 6 unless ref $_[0]
132 0 281 unless $self->can($attr)
139 1150 397 unless exists $self->{$attr}