blib/lib/DBIx/DataModel/Schema/ResultAs/Hashref.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 6 | 7 | 85.7 |
line | l | !l | condition |
---|---|---|---|
17 | 1 | 6 | ref $_[0] || '' |
46 | 3 | 9 | $node->{$_} ||= {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
32 | 1 | 6 | 0 | $self->{'make_key'} || do { my(@cols) = @{$self->{'cols'};}; @cols = $statement->meta_source->primary_key unless @cols; croak(q[-result_as=>'hashref' impossible: no primary key]) unless @cols; sub { my $row = shift(); map {defined $row->{$_} ? $row->{$_} : '';} @cols; } } |