Condition Coverage

blib/lib/Test/DBIx/Class.pm
Criterion Covered Total %
condition 36 63 57.1


and 3 conditions

line !l l&&!r l&&r condition
141 0 5 8 $arg and ref $arg
5 7 1 $arg and ref $arg and ref $arg eq 'CODE'
0 5 7 $arg and ref $arg
5 7 0 $arg and ref $arg and ref $arg eq 'HASH' || ref $arg eq 'ARRAY'
185 0 0 10 defined $arg and ref $arg eq 'HASH'
0 10 0 defined $arg and ref $arg eq 'HASH' and defined $arg->{'fields'}
195 0 0 28 &Scalar::Util::blessed($args[0]) and $args[0]->isa('DBIx::Class')
0 21 7 &Scalar::Util::blessed($args[0]) and $args[0]->isa('DBIx::Class') and not $args[0]->isa('DBIx::Class::ResultSet')
0 0 21 &Scalar::Util::blessed($args[0]) and $args[0]->isa('DBIx::Class::ResultSet')
312 2 0 2 ref $search and ref $search eq 'HASH'
422 26 2 0 ref $_ && ref $_ eq 'ARRAY'
623 14 0 0 $script_path->basename eq 'schema' and scalar @dir_parts == 0

or 2 conditions

line l !l condition
78 0 0 shift @_ || $global_class || 'DBIx::Class'
88 2 9 shift @_ || $global_class || 'DBIx::Class::ResultSet'
204 1 4 (grep {$field eq $_;} @pks)[0] || ''
224 2 5 shift @args || 'Fields match'
238 0 0 (grep {$field eq $_;} @pks)[0] || ''
259 21 0 shift @args || 'Fields match'
287 0 4 shift @_ || 'Schema reset complete'
294 0 1 shift @_ || 'Schema cleanup complete'
381 0 266 $subs->{'literal'} ||= sub { return $_[1]; }

or 3 conditions

line l !l&&r !l&&!r condition
141 6 1 0 ref $arg eq 'HASH' || ref $arg eq 'ARRAY'
191 3 24 1 not ref $args[0] or ref $args[0] eq 'ARRAY'
651 0 0 20 $@ or not $schema_manager