line |
true |
false |
branch |
117
|
26 |
77 |
if defined $self->update_handler
|
118
|
14 |
89 |
if defined $self->create_handler
|
119
|
14 |
89 |
if defined $self->destroy_handler
|
121
|
11 |
92 |
if $self->reload_on_save
|
136
|
21 |
12 |
unless ($self->has_no_onrequest_columns_mungers)
|
144
|
0 |
33 |
if defined $self->base_params and scalar keys %{$self->base_params;} > 0
|
176
|
21 |
0 |
$self->max_pagesize ? :
|
|
21 |
12 |
if jstrue($self->store_autoLoad)
|
182
|
22 |
11 |
if (defined $self->c)
|
192
|
0 |
22 |
if defined $params
|
203
|
0 |
33 |
if $self->store_use_xtype
|
222
|
0 |
0 |
if exists $r_parms->{'base_params'} and exists $r_parms->{'base_params_base64'}
|
226
|
0 |
22 |
exists $r_parms->{'base_params_base64'} ? :
|
228
|
0 |
22 |
if (defined $encoded)
|
229
|
0 |
0 |
unless my $decoded = $self->json->decode($encoded)
|
238
|
0 |
22 |
if defined $orig_params_enc
|
241
|
0 |
22 |
if defined $orig_params->{$key}
|
242
|
0 |
22 |
if defined $self->c->req->params->{$key}
|
245
|
0 |
22 |
unless ($self->has_no_base_params_mungers)
|
251
|
22 |
0 |
unless scalar keys %$params > 0
|
288
|
0 |
0 |
if $self->deleted_column_names->{$col}
|
289
|
0 |
0 |
if exists $self->columns->{$col}
|
296
|
0 |
0 |
unless $self->has_column($col)
|
348
|
0 |
0 |
if ref $offset or ref $_[0]
|
367
|
92 |
269 |
ref $_[0] eq 'HASH' ? :
|
374
|
0 |
1070 |
unless $self->valid_colname($name)
|
376
|
898 |
172 |
unless (defined $self->columns->{$name})
|
383
|
86 |
984 |
if $self->columns->{$name}->read_raw_munger
|
384
|
0 |
1070 |
if $self->columns->{$name}->update_munger
|
412
|
0 |
0 |
ref $_[0] eq 'HASH' ? :
|
423
|
0 |
0 |
ref $_[0] eq 'HASH' ? :
|
435
|
0 |
0 |
ref $_[0] eq 'HASH' ? :
|
437
|
0 |
0 |
unless ref $cols eq 'ARRAY'
|
440
|
0 |
0 |
unless defined $self->columns->{$column}
|
454
|
0 |
0 |
ref $_[0] eq 'HASH' ? :
|
464
|
0 |
0 |
unless defined $_[0]
|
465
|
0 |
0 |
ref $_[0] eq 'HASH' ? :
|
474
|
0 |
0 |
ref $_[0] eq 'HASH' ? :
|
477
|
0 |
0 |
if ($opt eq 'columns' and ref $opts{$opt} eq 'HASH') { }
|
|
0 |
0 |
elsif ($opt eq 'column_order') { }
|
479
|
0 |
0 |
unless defined $self->columns->{$col}
|
485
|
0 |
0 |
unless defined $self->columns->{$col}
|
497
|
0 |
0 |
ref $_[0] eq 'HASH' ? :
|
500
|
0 |
0 |
if ($opt eq 'columns' and ref $opts{$opt} eq 'HASH') { }
|
|
0 |
0 |
elsif ($opt eq 'column_order') { }
|
|
0 |
0 |
elsif ($opt eq 'sort') { }
|
517
|
0 |
1070 |
if (scalar @{$self->exclude_columns;} > 0)
|
518
|
0 |
0 |
if defined $self->exclude_columns_hash->{$name}
|
521
|
0 |
1070 |
if (scalar @{$self->include_columns;} > 0)
|
522
|
0 |
0 |
unless defined $self->include_columns_hash->{$name}
|
531
|
0 |
97 |
ref $_[0] eq 'ARRAY' && !defined($_[1]) ? :
|
535
|
0 |
806 |
if $cols_hash{$col}++
|
540
|
806 |
0 |
if ($cols_hash{$col}) { }
|
549
|
0 |
97 |
if (@remaining > 0)
|
554
|
0 |
97 |
if $offset > $last_indx
|
573
|
0 |
5 |
if (defined $params->{'orig_params'})
|
604
|
0 |
8 |
if not $self->max_pagesize or $params->{'ignore_page_size'}
|
608
|
5 |
0 |
unless not defined $params->{'limit'} or $params->{'limit'} > $self->max_pagesize or not defined $params->{'start'}
|
611
|
3 |
0 |
unless defined $params->{'start'}
|
614
|
3 |
0 |
if not defined $params->{'limit'} or $params->{'limit'} > $self->max_pagesize
|
628
|
8 |
0 |
if (defined $self->read_handler and $self->has_flag('can_read')) { }
|
637
|
0 |
8 |
unless ref $data eq 'HASH' and exists $data->{'results'} and ref $data->{'rows'} eq 'ARRAY'
|
644
|
8 |
0 |
unless ($self->has_no_read_raw_mungers)
|
656
|
8 |
0 |
ref $_[0] eq 'HASH' ? :
|
671
|
8 |
0 |
defined $self->store_fields ? :
|
680
|
7 |
1 |
if scalar @$rows > 0
|
716
|
0 |
3 |
if $params->{'batch_update'}
|
719
|
0 |
3 |
if (defined $params->{'orig_params'})
|
725
|
0 |
0 |
if defined $params->{$k}
|
730
|
0 |
3 |
unless ($self->has_no_update_mungers)
|
741
|
3 |
0 |
if ref $result eq 'HASH' and defined $result->{'success'}
|
744
|
0 |
0 |
if $result
|
767
|
0 |
0 |
if delete $result->{'use_this'}
|
774
|
0 |
0 |
if ref $rows eq 'HASH'
|
777
|
0 |
0 |
if ref $result and defined $result->{'rows'} and defined $result->{'rows'}{$self->record_pk}
|
780
|
0 |
0 |
if ref $result and ref $result->{'rows'} eq 'ARRAY'
|
782
|
0 |
0 |
if (ref $result and defined $result->{'success'} and defined $result->{'msg'})
|
784
|
0 |
0 |
if ($result->{'success'}) { }
|
794
|
0 |
0 |
if ($result and not ref $result && $result->{'success'} == 0)
|
802
|
0 |
0 |
if (ref $result eq 'HASH')
|
804
|
0 |
0 |
unless defined $result->{'msg'}
|
822
|
0 |
0 |
unless my $result = $self->destroy_handler->call($rows)
|
827
|
0 |
0 |
if ref $result eq 'HASH' and $result->{'success'}
|