Condition Coverage

blib/lib/Dancer/Plugin/SimpleCRUD.pm
Criterion Covered Total %
condition 42 114 36.8


and 3 conditions

line !l l&&!r l&&r condition
552 0 7 0 not exists $args{'deletable'} and exists $args{'deleteable'}
605 5 2 0 $args{'editable'} and $args{'deletable'}
912 3 0 0 request()->{'method'} eq 'POST' and $form->submitted
3 0 0 request()->{'method'} eq 'POST' and $form->submitted and $form->validate
1259 4 0 0 exists params()->{'d'} && params()->{'d'} eq 'desc'
1306 4 0 0 exists $args->{'foreign_keys'} and exists $args->{'foreign_keys'}{$order_by_column}
1318 14 0 0 $args->{'paginate'} and $args->{'paginate'} =~ /^\d+$/
1365 14 0 0 $args->{'downloadable'} and params()->{'format'}
1389 0 0 16 $args->{'editable'} and _has_permission('edit', $args)
1397 16 0 0 $args->{'deletable'} and _has_permission('edit', $args)
1430 13 0 1 $args->{'addable'} and _has_permission('edit', $args)

or 2 conditions

line l !l condition
546 0 7 'Dancer::App'->current->prefix || ''
555 0 7 $args{'key_column'} ||= 'id'
556 7 0 $args{'record_title'} ||= 'record'
699 2 0 $table->getTable || ''
758 2 1 $args->{'validation'} || {}
990 0 14 $args->{'table_class'} || ''
991 0 14 $args->{'paginate_table_class'} || ''
1048 0 14 params()->{'o'} || ''
1049 0 14 params()->{'d'} || ''
1205 4 0 $searchtype_row->[1]{'cmp'} || '='
1212 4 0 $searchtype_row->[1]{'name'} || 'equals'
1231 0 0 params()->{'o'} || ''
1232 0 0 params()->{'d'} || ''
1233 0 0 params()->{'p'} || 0
1324 0 0 params()->{'o'} || ''
1325 0 0 params()->{'d'} || ''
1326 0 0 params()->{'p'} || 0
1375 11 0 $custom_col_spec->{'transform'} || sub { return shift(); }
1428 13 1 $table->getTable || ''
1602 17 0 $args->{'auth'}{$mode} || $args->{'auth'} || {}
1635 17 0 $args->{'auth'}{$mode} || $args->{'auth'} || {}

or 3 conditions

line l !l&&r !l&&!r condition
632 0 0 0 params()->{'record_id'} || splat()
774 9 0 0 $_->{'NULLABLE'} or ++$required_fields{$_->{'COLUMN_NAME'}}
1009 3 11 0 params()->{'searchfield'} || $key_column
1043 30 110 0 params()->{'searchtype'} || $default_searchtype
1100 0 0 0 $args->{'labels'}{$col} || $col
1102 0 0 0 $fk_alias{$col} || $ftable
1178 4 0 10 length $q or $where_filter
1194 3 1 0 params()->{'searchtype'} || $default_searchtype
1198 0 0 4 $st eq 'c' or $st eq 'nc'
1230 0 0 0 params()->{'searchtype'} || $default_searchtype
1250 0 4 0 params()->{'searchtype'} || $default_searchtype
1251 0 4 0 uri_escape(params()->{'o'}) || $key_column
1323 0 0 0 params()->{'searchtype'} || $default_searchtype