Condition Coverage

blib/lib/DBIx/QuickORM.pm
Criterion Covered Total %
condition 142 217 65.4


and 3 conditions

line !l l&&!r l&&r condition
106 73 12 479 @_ and $_[0]
12 479 0 @_ and $_[0] and "$_[0]" eq $caller
113 19327 62 754 $only and not $only->{$name} || $only->{$sym}
259 1 1 2 @_ and ref $_[0] eq "HASH"
321 29 31 8 @_ == 1 and $_[0] =~ /^(\S+)\.([^:\s]+)(?::(\S+))?$/
378 29 8 0 @_ and not ref $_[0]
510 0 0 6 $cb and ref $cb eq "CODE"
589 0 0 1 $in and ref $in eq "CODE"
594 0 0 1 $data and ref $data eq "HASH"
660 1 0 3 $name and $data
692 21 0 2 @{$self->{'stack'};} == 1 and $self->{'type'} eq "table"
723 0 18 2 $_[1] and $_[1] =~ /::/
736 0 0 3 $class and not $no_match
1059 0 0 1 @args && !ref($args[0])
1081 0 0 7 $sref and $sref eq "ARRAY"
1083 4 0 3 $eref and $eref eq "ARRAY"
1152 155 24 10 $alt_arg && $frame->{'alt'}{$alt_arg}
1218 0 0 254 $args and @$args
1232 10 236 8 $name && $name =~ s/:(\S+)$//
1233 10 244 0 defined $name and not length $name
1240 10 142 97 $name and not $builder
152 8 89 $name and not $builder and not $meta_arg
150 11 78 $name and not $builder and not $meta_arg and not $force_build
1257 10 8 153 $name and $type ne "Alt"

or 2 conditions

line l !l condition
85 2 393 $params{'type'} // "orm"
86 1 394 $params{'rename'} // {}
87 0 395 $params{'skip'} // {}
172 0 395 $params{'stack'} //= [{"base", 1, "plugins", [], "building", "", "build", "Should not access this", "meta", "Should not access this"}]
174 0 395 $params{'orms'} //= {}
175 0 395 $params{'dbs'} //= {}
176 0 395 $params{'schemas'} //= {}
177 0 395 $params{'servers'} //= {}
189 17 1 $name //= "qorm"
217 0 8 $top->{'alt'}{$name} // {"building", $top->{'building'}, "name", $name, "meta", {}}
221 8 0 $top->{'alt'} //= {}
253 497 0 $_->{'plugins'} // []
354 1 2 $top->{'meta'}{'dbs'} //= {}
399 0 5 $top->{'meta'}{'types'} //= {}
0 5 $top->{'meta'}{'affinities'} //= {}
473 0 0 $params{'table'} // (return)
481 5 0 $params{'links'} // (return)
513 0 6 $top->{'meta'}{'hooks'}{$hook} //= []
533 0 0 $top->{'meta'}{'skip'}{$type} //= {}
535 0 0 $into->{$level} //= {}
607 1 0 $top->{'meta'} // {}
642 1 1 $top->{'meta'}{'tables'} //= {}
701 0 2 $table->{'row_class'} // "+DBIx::QuickORM::Row"
716 4 17 $top->{'meta'}{'tables'} //= {}
761 0 1 $params // {}
766 1 2 $params // {}
780 29 20 $top->{'column_order'} //= 1
783 29 20 $top->{'meta'}{'columns'} //= {}
874 22 1 pop() // "infix"
937 3 4 $_[1] // 1
2 5 $_[1] // 1
938 3 4 $_[1] // 1
2 3 $_[1] // 1
939 3 3 $_[1] // 1
2 3 $_[1] // 1
940 2 1 $_[1] // 1
1143 41 164 $alt_arg || ':'
1152 10 0 $frame->{'alt'}{$alt_arg}{'meta'} // {}
1160 765 14 $self->_merge($alta->{$field}, $meta->{$field}) // (next)
1235 8 246 $meta_arg // {}
1255 82 89 $frame->{'meta'} // {}

or 3 conditions

line l !l&&r !l&&!r condition
106 0 19355 0 $export{$name} //= set_subname("${caller}::$meth", sub {
111 1 20142 0 $rename->{$sym} // $sym
112 0 0 20143 $skip->{$name} or $skip->{$sym}
113 62 0 754 $only->{$name} || $only->{$sym}
347 3 0 0 $top->{'name'} // $top->{'created'}
417 0 2 0 $name_to_class //= sub {
422 0 2 0 load_class($base) // load_class("DBIx::QuickORM::Row")
440 0 5 0 $INC{$file} ||= $caller->[1]
461 12 0 0 &$callback(%params) || $params{'name'}
467 4 0 0 &$callback(%params) || $params{'name'}
474 0 0 0 &$callback('table', $table, 'name', $table->{'name'}) || $table->{'name'}
604 0 1 0 $creds{'host'} or $creds{'socket'}
655 1 1 0 $cb //= sub {
723 1 2 18 $_[0] =~ /::/ or $_[1] and $_[1] =~ /::/
738 2 1 0 $name //= $table->{'name'}
800 0 5 29 $arg eq "id" or $arg eq "identity"
1 1 16 $arg eq "sql_default" or $arg eq "perl_default"
1115 1 4 0 $table // $top
1201 16 0 0 $a // $b
1253 153 9 0 $name // "Anonymous builder ($created)"
9 162 0 $frame->{'name'} //= $name // "Anonymous builder ($created)"