Branch Coverage

blib/lib/LittleORM/Filter.pm
Criterion Covered Total %
branch 0 104 0.0


line true false branch
30 0 0 if (&blessed($arg) and $arg->isa('LittleORM::Filter')) { }
0 0 elsif (&blessed($arg) and $arg->isa('LittleORM::Clause')) { }
32 0 0 unless ($i % 2)
36 0 0 if (my $attr_co_connect = &LittleORM::Filter::find_corresponding_fk_attr_between_models($class, $arg->model)) { }
0 0 elsif (my $rev_connect = &LittleORM::Filter::find_corresponding_fk_attr_between_models($arg->model, $class)) { }
54 0 0 if (my $foreign_key_attr_name = &__descr_attr($attr, 'foreign_key_attr_name')) { }
65 0 0 unless ($arg->returning)
83 0 0 unless ($i % 2)
167 0 0 if ($arg eq '_return') { }
0 0 elsif ($arg eq '_sortby') { }
0 0 elsif ($arg eq '_exists') { }
0 0 elsif ($arg eq '_not_exists') { }
0 0 elsif (&blessed($val) and $val->isa('LittleORM::Filter')) { }
0 0 elsif (&blessed($val) and $val->isa('LittleORM::Clause')) { }
169 0 0 if ('LittleORM::Model::Field'->this_is_field($val)) { }
216 0 0 unless (@clauseargs)
259 0 0 if ($attr1 and $attr2 and my $fk = &LittleORM::Model::__descr_attr($attr1, 'foreign_key'))
261 0 0 if ($fk eq $filter->model and my $fkattr = &LittleORM::Model::__descr_attr($attr1, 'foreign_key_attr_name'))
269 0 0 if ($attr1) { }
281 0 0 if ($attr2) { }
293 0 0 if ($attr1_t and $attr2_t and $attr1_t ne $attr2_t)
327 0 0 if ($next_arg_is_what_we_need) { }
0 0 elsif (exists $kws{$t}) { }
352 0 0 if (ref $rv eq 'ARRAY')
374 0 0 unless ($connecting_clause)
397 0 0 if (exists $known{uc $jtype})
447 0 0 if ($type) { }
462 0 0 if ($connecting_clause) { }
504 0 0 unless ($filter)
506 0 0 if (ref $arg eq 'HASH')
513 0 0 unless ($filter)
515 0 0 if ($arg and &blessed($arg) and $arg->isa('LittleORM::Filter')) { }
519 0 0 unless ($connecting_clause)
593 0 0 unless ($clause->table_alias)
595 0 0 unless ($table_alias)
597 0 0 if ($self->model eq $clause->model)
609 0 0 if ($clause->table_alias) { }
645 0 0 if ($rv) { }
0 0 elsif (my $rv_f = $self->returning_field) { }
693 0 0 if ($arg =~ /^_/ and $arg ne '_clause')
714 0 0 if ($depth == 0 and &__in_skip_list(my $s = $tn . ' ' . $ta)) { }
0 0 elsif ($depth) { }
730 0 0 if ($jt_to_n eq $tn and $jt_to_a eq $ta)
773 0 0 if (exists $skip_list{$what})
798 0 0 if (exists $skip_duplicates{$ta}) { }
803 0 0 if (my $spec = $self->_table_spec_with_join_support({$t, $ta}))
916 0 0 unless ('LittleORM::Model::Field'->this_is_field($aname))
928 0 0 if (my $code = $cleanse{$method})
948 0 0 if (my $code = $cleanse{$method})
965 0 0 if (my $fk = &LittleORM::Model::__descr_attr($attr, 'foreign_key'))
967 0 0 if ($fk eq 'yes')
975 0 0 if ($model2 eq $fk)