Branch Coverage

blib/lib/Teng/Plugin/SearchBySQLAbstractMore.pm
Criterion Covered Total %
branch 46 54 85.1


line true false branch
31 0 2 ref $_[0] ? :
36 35 2 ref $_[0] ? :
49 1 15 unless my $table = $self->schema->get_table($table_name)
62 1 14 wantarray ? :
68 9 22 if (ref $table_name eq 'HASH') { }
72 7 0 $_opt->{'-from'}[0] eq '-join' ? :
7 2 ref $_opt->{'-from'} eq 'ARRAY' ? :
75 4 5 if ($page = delete $args{'-page'})
84 45 30 $key =~ /^\-/ ? :
89 8 14 if ($page = delete $args{'page'} || delete $args{'-page'})
102 14 8 if (exists $args->{'-order_by'})
103 1 13 if (ref $args->{'-order_by'} eq 'HASH') { }
11 2 elsif (ref $args->{'-order_by'} eq 'ARRAY') { }
106 1 0 if ($asc_desc eq "asc" or $asc_desc eq "desc")
112 1 10 if (ref $def eq "HASH")
115 1 0 if ($asc_desc eq "asc" or $asc_desc eq "desc")
122 10 12 if (exists $args->{'-columns'})
124 0 18 if ref $col
136 6 4 ref $self ? :
138 1 9 if (exists $opt{'replace'} and $opt{'replace'}) { }
142 0 9 if $alias eq 1
147 9 1 if (my $pager_plugin = $opt{'pager'})
148 1 8 $opt{'pager_alias'} ? :
149 1 8 if ($pager_plugin eq '1') { }
154 1 7 if ($pager_plugin_name eq 'simple') { }
0 7 elsif ($pager_plugin_name eq 'mysql_found_rows') { }
0 7 elsif ($pager_plugin_name eq 'count') { }