Branch Coverage

blib/lib/DBR/ResultSet.pm
Criterion Covered Total %
branch 23 64 35.9


line true false branch
47 0 0 unless /^[A-Za-z0-9_\.]+$/
62 0 0 if $@
64 0 0 wantarray ? :
79 0 0 if ($$self[1] == 3)
83 0 0 if ($$self[1] == 2)
103 0 34 unless $$self[1] == 1
105 10 24 if (defined $$self[5]) { }
128 0 24 unless defined(my $rv = $sth->execute)
132 0 24 if ($$self[3]->instance->getconn->can_trust_execute_rowcount)
143 0 16 unless defined $self
218 3 0 if ($$self[1] == 1)
222 0 3 if ($$self[1] == 3) { }
244 17 16 if defined $$self[4]
246 6 10 if (defined $$self[5])
271 0 0 unless my $field = $table->get_field($name)
272 0 0 if $alias
274 0 0 if $field->is_readonly
278 0 0 unless $value->count == 1
280 0 0 unless my $setobj = 'DBR::Query::Part::Set'->new($field, $value)
285 0 0 unless scalar @sets > 0
322 0 1 unless scalar @fieldnames
326 0 0 wantarray ? :
0 1 unless $self->count > 0
335 0 1 if (scalar @fieldnames > 1) { }
347 0 1 if $@
349 0 1 unless $self->each($sub)
351 1 0 wantarray ? :
362 0 2 unless scalar @fieldnames
366 0 2 unless $self->count > 0
375 0 2 unless /^[A-Za-z0-9_-]+$/
383 0 2 if ($mode eq 'multi') { }
392 0 2 if $@