blib/lib/Dancer/Plugin/SimpleCRUD.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 42 | 114 | 36.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
552 | 0 | 8 | 0 | not exists $args{'deletable'} and exists $args{'deleteable'} |
607 | 5 | 3 | 0 | $args{'editable'} and $args{'deletable'} |
915 | 3 | 0 | 0 | request()->{'method'} eq 'POST' and $form->submitted |
3 | 0 | 0 | request()->{'method'} eq 'POST' and $form->submitted and $form->validate | |
1262 | 4 | 0 | 0 | exists params()->{'d'} && params()->{'d'} eq 'desc' |
1309 | 4 | 0 | 0 | exists $args->{'foreign_keys'} and exists $args->{'foreign_keys'}{$order_by_column} |
1321 | 14 | 0 | 0 | $args->{'paginate'} and $args->{'paginate'} =~ /^\d+$/ |
1368 | 14 | 0 | 0 | $args->{'downloadable'} and params()->{'format'} |
1392 | 0 | 0 | 16 | $args->{'editable'} and _has_permission('edit', $args) |
1400 | 16 | 0 | 0 | $args->{'deletable'} and _has_permission('edit', $args) |
1433 | 13 | 0 | 1 | $args->{'addable'} and _has_permission('edit', $args) |
line | l | !l | condition |
---|---|---|---|
546 | 0 | 8 | 'Dancer::App'->current->prefix || '' |
555 | 0 | 8 | $args{'key_column'} ||= 'id' |
556 | 8 | 0 | $args{'record_title'} ||= 'record' |
702 | 2 | 0 | $table->getTable || '' |
761 | 2 | 1 | $args->{'validation'} || {} |
993 | 0 | 14 | $args->{'table_class'} || '' |
994 | 0 | 14 | $args->{'paginate_table_class'} || '' |
1051 | 0 | 14 | params()->{'o'} || '' |
1052 | 0 | 14 | params()->{'d'} || '' |
1208 | 4 | 0 | $searchtype_row->[1]{'cmp'} || '=' |
1215 | 4 | 0 | $searchtype_row->[1]{'name'} || 'equals' |
1234 | 0 | 0 | params()->{'o'} || '' |
1235 | 0 | 0 | params()->{'d'} || '' |
1236 | 0 | 0 | params()->{'p'} || 0 |
1327 | 0 | 0 | params()->{'o'} || '' |
1328 | 0 | 0 | params()->{'d'} || '' |
1329 | 0 | 0 | params()->{'p'} || 0 |
1378 | 11 | 0 | $custom_col_spec->{'transform'} || sub { return shift(); } |
1431 | 13 | 1 | $table->getTable || '' |
1605 | 21 | 0 | $args->{'auth'}{$mode} || $args->{'auth'} || {} |
1638 | 17 | 0 | $args->{'auth'}{$mode} || $args->{'auth'} || {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
634 | 0 | 0 | 0 | params()->{'record_id'} || splat() |
777 | 9 | 0 | 0 | $_->{'NULLABLE'} or ++$required_fields{$_->{'COLUMN_NAME'}} |
1012 | 3 | 11 | 0 | params()->{'searchfield'} || $key_column |
1046 | 30 | 110 | 0 | params()->{'searchtype'} || $default_searchtype |
1103 | 0 | 0 | 0 | $args->{'labels'}{$col} || $col |
1105 | 0 | 0 | 0 | $fk_alias{$col} || $ftable |
1181 | 4 | 0 | 10 | length $q or $where_filter |
1197 | 3 | 1 | 0 | params()->{'searchtype'} || $default_searchtype |
1201 | 0 | 0 | 4 | $st eq 'c' or $st eq 'nc' |
1233 | 0 | 0 | 0 | params()->{'searchtype'} || $default_searchtype |
1253 | 0 | 4 | 0 | params()->{'searchtype'} || $default_searchtype |
1254 | 0 | 4 | 0 | uri_escape(params()->{'o'}) || $key_column |
1326 | 0 | 0 | 0 | params()->{'searchtype'} || $default_searchtype |