Condition Coverage

blib/lib/Perinci/Sub/Gen/AccessTable.pm
Criterion Covered Total %
condition 200 272 73.5


and 3 conditions

line !l l&&!r l&&r condition
45 0 0 12 $args and $args->{$arg}
237 1 1 32 $opts->{'enable_ordering'} and $opts->{'enable_random_ordering'}
270 1 1 32 $opts->{'enable_filtering'} and $opts->{'enable_search'}
281 212 0 29 defined $fspec->{'filterable'} and not $fspec->{'filterable'}
545 162 0 6 defined $args->{$f} and __is_filter_arg($f, $func_meta)
555 162 0 8 $exists and not $f ~~ \@filter_fields
570 168 0 4 $exists and not $f ~~ \@filter_fields
592 1030 0 3 defined $args->{$f} and __is_filter_arg($f, $func_meta)
600 1030 0 3 defined $args->{$f} and __is_filter_arg($f, $func_meta)
624 1013 0 22 $exists and not $f ~~ \@filter_fields
647 517 0 4 $exists and not $f ~~ \@filter_fields
734 0 0 11936 ref $av->{'schema'} and ref $av->{'schema'}[1]
0 11387 549 ref $av->{'schema'} and ref $av->{'schema'}[1] and defined $av->{'schema'}[1]{'default'}
739 11578 349 9 $ak =~ /\A(exclude_fields|fields)\z/ and defined $args{$ak}
843 97 14 8 $op eq "==" and $stringy
111 5 3 $op eq "==" and $stringy and $cic
97 14 5 $op eq "==" and $stringy
97 10 4 $op eq "==" and $ftype eq "date"
89 8 0 $op eq "!=" and $stringy
97 0 0 $op eq "!=" and $stringy and $cic
89 8 0 $op eq "!=" and $stringy
89 0 8 $op eq "!=" and $ftype eq "date"
63 22 4 $op eq ">=" and $stringy
85 4 0 $op eq ">=" and $stringy and $cic
63 22 4 $op eq ">=" and $stringy
63 18 4 $op eq ">=" and $ftype eq "date"
55 4 4 $op eq ">" and $stringy
59 4 0 $op eq ">" and $stringy and $cic
55 4 4 $op eq ">" and $stringy
55 0 4 $op eq ">" and $ftype eq "date"
39 12 4 $op eq "<=" and $stringy
51 4 0 $op eq "<=" and $stringy and $cic
39 12 4 $op eq "<=" and $stringy
39 8 4 $op eq "<=" and $ftype eq "date"
31 4 4 $op eq "<" and $stringy
31 4 0 $op eq "<" and $stringy
31 0 4 $op eq "<" and $ftype eq "date"
19 4 0 $op eq "pos" and $cic
15 4 0 $op eq "!pos" and $cic
846 8 0 0 $stringy and $cic
857 8 0 0 $stringy and $cic
868 8 4 0 $stringy and $cic
875 8 4 0 $stringy and $cic
888 0 0 4 $dopn and $d
900 4 0 4 $dopn and $d
912 0 0 4 $dopn and $d
924 0 0 4 $dopn and $d
936 0 0 4 $dopn and $d
948 0 0 4 $dopn and $d

or 2 conditions

line l !l condition
68 1888 0 $schema->[1] //= {}
131 0 34 ($opts->{'summary'} // $table_spec->{'summary'}) // "REPLACE ME"
0 34 $opts->{'description'} // "REPLACE ME"
169 1 33 $opts->{'default_detail'} // 0
237 1 31 $opts->{'default_random'} // 0
283 1 211 $fspec->{'include_by_default'} // 1
469 33 0 $opts->{'custom_filters'} // {}
478 1 33 $opts->{'extra_args'} // {}
482 1 33 $opts->{'extra_props'} // {}
506 2 60 $fspecs->{$_}{'include_by_default'} // 1
519 3 3 $args->{'with_field_names'} //= 0
522 0 163 $args->{'with_field_names'} //= 0
652 177 0 $opts->{'custom_filters'} // {}
656 4 0 $cf->{'fields'} // []
715 175 0 $args->{'result_start'} // 1
1509 249 0 $fspec->{'schema'} //= "any"
1513 1 33 $args{'custom_filters'} // {}
1515 2 0 $cf->{'meta'} //= {}
1516 2 0 $cf->{'meta'}{'schema'} //= "any"
1520 1 33 $args{'default_arg_values'} // {}
1563 0 34 $args{'langs'} // ["en_US"]
0 34 $args{'detail_cmdline_aliases'} // {"l", {}}
0 34 $args{'query_aliases'} // {"q", {}}
1 33 $args{'enable_filtering'} // 1
1 33 $args{'enable_search'} // 1
1 33 $args{'case_insensitive_search'} // 1
2 32 $args{'enable_ordering'} // 1
1 32 ($args{'enable_random_ordering'} // $args{'enable_ordering'}) // 1
1 33 $args{'enable_paging'} // 1
1 33 $args{'enable_field_selection'} // 1
2 32 $args{'hooks'} // {}
1574 34 0 $args{'install'} // 1

or 3 conditions

line l !l&&r !l&&!r condition
34 11 67 133 not @$data or ref $data->[0] eq "ARRAY"
39 0 133 0 not @$data or ref $data->[0] eq "HASH"
131 0 0 34 $opts->{'summary'} // $table_spec->{'summary'}
497 2340 465 4 $fspecs->{$a}{'pos'} // $fspecs->{$a}{'index'}
1828 979 2 $fspecs->{$b}{'pos'} // $fspecs->{$b}{'index'}
503 7 2 169 $args->{'detail'} or $args->{'exclude_fields'}
516 4 5 0 $args->{'with_field_names'} //= $args->{'detail'} ? 1 : 0
698 7 0 1 not defined $fspec->{'sortable'} or $fspec->{'sortable'}
736 62 234 253 $args{$ak} //= $av->{'schema'}[1]{'default'}
775 54 119 2 __is_aoa($table_data) or __is_aoh($table_data)
784 2 0 0 __is_aoa($data) or __is_aoh($data)
829 1302 432 0 $fspecs->{$f}{'pos'} // $fspecs->{$f}{'index'}
841 48 0 139 $ftype eq 'str' || $ftype eq 'cistr'
1050 22 24 514 $args{'detail'} or $args{'fields'}
24 4 510 $args{'detail'} or $args{'fields'} or $args{'exclude_fields'}
1484 0 38 0 $args{'package'} // $caller[0]
1490 22 14 2 __is_aoa($table_data) or __is_aoh($table_data)
36 2 0 __is_aoa($table_data) or __is_aoh($table_data) or ref $table_data eq "CODE"
1563 1 0 33 $args{'enable_random_ordering'} // $args{'enable_ordering'}

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
844 8 6 8 6 $r_h->{$f} xor $opn