Branch Coverage

blib/lib/RapidApp/Module/Grid.pm
Criterion Covered Total %
branch 42 74 56.7


line true false branch
69 0 0 unless ref $display
99 45 7 if (defined $self->open_record_class)
110 0 52 if (defined $self->add_record_class)
124 47 5 $self->use_column_summaries ? :
52 0 $self->use_autosize_columns ? :
52 0 $self->use_multisort ? :
5 47 $self->auto_autosize_columns ? :
0 52 $self->auto_autosize_columns_deep ? :
0 52 $self->autosize_hidden ? :
52 0 $self->allow_edit_frozen ? :
52 0 $self->open_record_via_rest ? :
52 0 $self->open_record_column ? :
52 0 $self->open_record_column_hidden ? :
147 52 0 if (defined $self->record_pk)
149 0 52 if scalar @{$self->include_columns;} > 0
154 45 7 if (defined $self->open_record_url or defined $self->add_record_class)
168 47 5 if $self->can('save_search')
169 47 5 if $self->can('delete_search')
181 0 22 if &try(sub { $self->c->req->params->{'quick_search'}; } )
184 0 22 if ($quick_search_cols and $quick_search_cols ne '')
191 0 22 if (my $qs_mode = &try(sub { $self->c->req->params->{'quick_search_mode'}; } ))
197 21 1 if defined $self->tbar_items
204 0 22 if ($self->can('action_delete_records') and $self->has_flag('can_delete'))
223 1 7 if (defined $self->open_record_url)
227 0 0 if defined $record->{'loadContentCnf'}
234 0 0 unless (defined $loadCfg->{'autoLoad'})
236 0 0 if $loadCfg->{'url'}
239 0 0 unless defined $loadCfg->{'autoLoad'}{'url'}
293 1 42 unless my $items = $self->options_menu_items
294 0 42 unless ref $items eq 'ARRAY' and scalar @$items
320 0 43 if defined $self->title_icon_href
321 0 43 if defined $self->title
324 0 43 if defined $menu and scalar @$arrayref > 0
325 42 1 if defined $menu
329 0 43 if defined $self->add_record_class and $self->show_add_button
334 42 1 scalar @$arrayref > 1 ? :
369 0 0 ref $_[0] eq 'ARRAY' ? :