blib/lib/DBIx/Class/Schema.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 48 | 73 | 65.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
219 | 0 | 1 | 15 | $arg and not ref $arg |
262 | 0 | 113 | 2 | $preset_resultset_class and $preset_resultset_class ne 'DBIx::Class::ResultSet' |
263 | 2 | 0 | 0 | $found_resultset_class and $found_resultset_class ne $preset_resultset_class |
597 | 60 | 9 | 29376 | $mapped and exists $sreg->{$mapped} |
797 | 441 | 14 | 0 | not @info and $self->storage |
1009 | 865 | 0 | 1 | @_ == 1 && ref $_[0] eq 'HASH' |
1404 | 2 | 0 | 33914 | $rs_class and my $rsrc = &try(sub { $rs_class->result_source_instance; } ) |
1406 | 33863 | 47 | 4 | exists $map{$rs_class} and $map{$rs_class} ne $source_name |
33910 | 3 | 1 | exists $map{$rs_class} and $map{$rs_class} ne $source_name and $rsrc ne $_[2] | |
1445 | 0 | 40052 | 16 | length ref $srcs->{$source_name} and &refcount($srcs->{$source_name}) > 1 |
line | l | !l | condition |
---|---|---|---|
206 | 4 | 4 | delete $args{'result_namespace'} || 'Result' |
207 | 4 | 4 | delete $args{'resultset_namespace'} || 'ResultSet' |
251 | 57 | 57 | $inh_idx{$a} ||= scalar @{&mro::get_linear_isa($results_by_source_name->{$a});} |
53 | 61 | $inh_idx{$b} ||= scalar @{&mro::get_linear_isa($results_by_source_name->{$b});} | |
815 | 0 | 455 | $args || {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
168 | 16 | 0 | 0 | $_[1] || ref $_[0] || $_[0] |
192 | 0 | 240 | 0 | ref $_[0] || $_[0] |
262 | 8 | 1 | 104 | $found_resultset_class ||= $default_resultset_class |
279 | 0 | 115 | 0 | $class->_ns_get_rsrc_instance($result_class)->source_name || $source_name |
387 | 325 | 14642 | 0 | &$snsub($comp_class) || $comp |
904 | 46 | 18771 | 0 | $base || () |
916 | 18817 | 0 | 0 | ref $new_source->{'schema'} || $new_source->{'schema'} |
1011 | 417 | 449 | 0 | ref $self || $self |
1240 | 15 | 0 | 0 | &blessed($self) || $self |
1301 | 31 | 1 | 0 | ref $self || $self |
1432 | 0 | 0 | 881 | $global_phase_destroy ||= &in_global_destruction() |