Branch Coverage

blib/lib/RapidApp/TableSpec.pm
Criterion Covered Total %
branch 6 80 7.5


line true false branch
140 0 1094 if (defined $self->limit_columns and scalar @{$self->limit_columns;} > 0)
145 0 1094 if (defined $self->exclude_columns and scalar @{$self->exclude_columns;} > 0)
161 15113 0 if not $seen{$_}++
173 0 0 if $col eq $column
199 0 0 if scalar @_ == 1 and ref $_[0] eq 'ARRAY'
206 0 0 unless $offset =~ /^\d+$/
208 0 0 if scalar @_ == 1 and ref $_[0] eq 'ARRAY'
219 0 0 if ($offset < scalar @{$self->column_order;}) { }
255 0 1094 if ref $col eq 'RapidApp::TableSpec::Column'
256 1094 0 unless ($Column)
257 0 1094 if $self->profile_definitions
275 0 0 ref $_[0] eq 'HASH' ? :
286 0 0 ref $_[0] eq 'HASH' ? :
290 0 0 unless my $Column = $self->get_column($col)
301 0 0 ref $_[0] eq 'HASH' ? :
307 0 0 if ($self->meta->find_attribute_by_name($opt)) { }
321 0 0 if $Copy->can($key)
326 0 0 if ($opts{'column_property_transforms'} and $opts{'column_property_transforms'}{'name'})
329 0 0 if ($Copy->limit_columns)
331 0 0 if scalar @limit > 0
334 0 0 if ($Copy->exclude_columns)
336 0 0 if scalar @exclude > 0
353 0 0 if $self->limit_columns
354 0 0 if $TableSpec->limit_columns
356 0 0 if scalar @limit > 0
360 0 0 if $self->exclude_columns
361 0 0 if $TableSpec->exclude_columns
363 0 0 if scalar @exclude > 0
405 0 0 unless $Column->permission_roles
409 0 0 if not ref $role and $role =~ /\s+/
411 0 0 if ref $role eq 'ARRAY'
412 0 0 unless $roles->{$rolespec}
413 0 0 unless $roles->{$rolespec}{$perm}
421 0 0 unless scalar keys %$roles > 0
440 0 0 if ($c->check_user_roles(split(/\s+/, $role, 0))) { }
447 0 0 if ($map->{$role}{'create'}) { }
0 0 elsif ($map->{$role}{'read'}) { }
0 0 elsif ($map->{$role}{'update'}) { }
0 0 elsif ($map->{$role}{'destroy'}) { }
459 0 0 unless ref $list