Branch Coverage

blib/lib/Mojolicious/Plugin/DataTables.pm
Criterion Covered Total %
branch 0 66 0.0


line true false branch
63 0 0 if (defined $args{'db'})
69 0 0 if ref $db eq 'Mojo::SQLite::Database'
70 0 0 if ref $db eq 'Mojo::Pg::Database'
71 0 0 if ref $db eq 'Mojo::mysql::Database'
82 0 0 if ($sql_class =~ /Mojo::Pg/u)
88 0 0 unless $ssp->draw
92 0 0 if ($columns)
93 0 0 if (ref $columns eq 'ARRAY') { }
110 0 0 if ($where)
111 0 0 if (ref $where eq 'ARRAY') { }
126 0 0 if ($_->database and $_->searchable != 0 and $_->search->{'value'})
128 0 0 if ($_->search->{'regex'}) { }
139 0 0 if ($ssp->search->{'value'})
141 0 0 if ($_->database and $_->searchable != 0)
143 0 0 if ($ssp->search->{'regex'}) { }
155 0 0 if (%{$ssp->db_order;})
165 0 0 if scalar @{$abstract->{'where'}{'-and'};} < 1
166 0 0 if scalar @{$abstract->{'where'}{'-or'};} < 1
172 0 0 if ($debug)
192 0 0 if (ref $column->formatter eq 'CODE')
207 0 0 if ($debug)
217 0 0 if (@bind_filter)
237 0 0 if $c->req->{'method'} eq 'GET'
238 0 0 if $c->req->{'method'} eq 'POST'
268 0 0 if $value eq 'true'
269 0 0 if $value eq 'false'
271 0 0 if $_ =~ /columns\[(\d+)\]\[(data|name|searchable|orderable)\]/u
272 0 0 if $_ =~ /columns\[(\d+)\]\[search\]\[(regex|value|)\]/u
273 0 0 if $_ =~ /order\[(\d+)\]\[(column|dir)\]/u
274 0 0 if $_ =~ /search\[(value|regex)\]/u
282 0 0 unless (defined $dt_option->{'dt'})
290 0 0 if (defined $dt_option->{'searchable'})
293 0 0 if (defined $dt_option->{'orderable'})