Condition Coverage

blib/lib/Perinci/Sub/Gen/AccessTable.pm
Criterion Covered Total %
condition 208 284 73.2


and 3 conditions

line !l l&&!r l&&r condition
46 0 0 12 $args and $args->{$arg}
242 1 1 32 $opts->{'enable_ordering'} and $opts->{'enable_random_ordering'}
276 1 1 32 $opts->{'enable_filtering'} and $opts->{'enable_search'}
287 212 0 29 defined $fspec->{'filterable'} and not $fspec->{'filterable'}
551 162 0 6 defined $args->{$f} and __is_filter_arg($f, $func_meta)
561 162 0 8 $exists and not $f ~~ \@filter_fields
576 168 0 4 $exists and not $f ~~ \@filter_fields
598 1030 0 3 defined $args->{$f} and __is_filter_arg($f, $func_meta)
606 1030 0 3 defined $args->{$f} and __is_filter_arg($f, $func_meta)
630 1013 0 22 $exists and not $f ~~ \@filter_fields
653 517 0 4 $exists and not $f ~~ \@filter_fields
674 176 0 1 defined $qq && @$qq
744 0 179 11757 ref $av->{'schema'} and ref $av->{'schema'}[1]
179 11208 549 ref $av->{'schema'} and ref $av->{'schema'}[1] and defined $av->{'schema'}[1]{'default'}
749 11578 349 9 $ak =~ /\A(exclude_fields|fields)\z/ and defined $args{$ak}
853 96 14 8 $op eq "==" and $stringy
110 5 3 $op eq "==" and $stringy and $cic
96 14 5 $op eq "==" and $stringy
96 10 4 $op eq "==" and $ftype eq "date"
88 8 0 $op eq "!=" and $stringy
96 0 0 $op eq "!=" and $stringy and $cic
88 8 0 $op eq "!=" and $stringy
88 0 8 $op eq "!=" and $ftype eq "date"
62 22 4 $op eq ">=" and $stringy
84 4 0 $op eq ">=" and $stringy and $cic
62 22 4 $op eq ">=" and $stringy
62 18 4 $op eq ">=" and $ftype eq "date"
54 4 4 $op eq ">" and $stringy
58 4 0 $op eq ">" and $stringy and $cic
54 4 4 $op eq ">" and $stringy
54 0 4 $op eq ">" and $ftype eq "date"
38 12 4 $op eq "<=" and $stringy
50 4 0 $op eq "<=" and $stringy and $cic
38 12 4 $op eq "<=" and $stringy
38 8 4 $op eq "<=" and $ftype eq "date"
30 4 4 $op eq "<" and $stringy
30 4 0 $op eq "<" and $stringy
30 0 4 $op eq "<" and $ftype eq "date"
18 4 0 $op eq "pos" and $cic
14 4 0 $op eq "!pos" and $cic
856 8 0 0 $stringy and $cic
867 8 0 0 $stringy and $cic
878 8 4 0 $stringy and $cic
885 8 4 0 $stringy and $cic
898 0 0 4 $dopn and $d
910 4 0 4 $dopn and $d
922 0 0 4 $dopn and $d
934 0 0 4 $dopn and $d
946 0 0 4 $dopn and $d
958 0 0 4 $dopn and $d

or 2 conditions

line l !l condition
69 1888 0 $schema->[1] //= {}
136 0 34 ($opts->{'summary'} // $table_spec->{'summary'}) // "REPLACE ME"
0 34 $opts->{'description'} // "REPLACE ME"
174 1 33 $opts->{'default_detail'} // 0
242 1 31 $opts->{'default_random'} // 0
289 1 211 $fspec->{'include_by_default'} // 1
475 33 0 $opts->{'custom_filters'} // {}
484 1 33 $opts->{'extra_args'} // {}
488 1 33 $opts->{'extra_props'} // {}
512 2 60 $fspecs->{$_}{'include_by_default'} // 1
525 3 3 $args->{'with_field_names'} //= 0
528 0 163 $args->{'with_field_names'} //= 0
658 177 0 $opts->{'custom_filters'} // {}
662 4 0 $cf->{'fields'} // []
683 11 0 ($args->{'query_boolean'} // $opts->{'default_query_boolean'}) // "and"
725 175 0 $args->{'result_start'} // 1
1531 249 0 $fspec->{'schema'} //= "any"
1535 1 33 $args{'custom_filters'} // {}
1537 2 0 $cf->{'meta'} //= {}
1538 2 0 $cf->{'meta'}{'schema'} //= "any"
1542 1 33 $args{'default_arg_values'} // {}
1589 0 34 $args{'langs'} // ["en_US"]
0 34 $args{'detail_cmdline_aliases'} // {"l", {}}
0 34 $args{'query_aliases'} // {"q", {}}
0 34 $args{'queries_aliases'} // {"q", {}}
0 34 $args{'default_query_boolean'} // "and"
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'} // {}
1600 34 0 $args{'install'} // 1

or 3 conditions

line l !l&&r !l&&!r condition
35 11 67 133 not @$data or ref $data->[0] eq "ARRAY"
40 0 133 0 not @$data or ref $data->[0] eq "HASH"
136 0 0 34 $opts->{'summary'} // $table_spec->{'summary'}
503 2379 513 4 $fspecs->{$a}{'pos'} // $fspecs->{$a}{'index'}
2050 844 2 $fspecs->{$b}{'pos'} // $fspecs->{$b}{'index'}
509 7 2 169 $args->{'detail'} or $args->{'exclude_fields'}
522 4 5 0 $args->{'with_field_names'} //= $args->{'detail'} ? 1 : 0
683 0 11 0 $args->{'query_boolean'} // $opts->{'default_query_boolean'}
708 7 0 1 not defined $fspec->{'sortable'} or $fspec->{'sortable'}
746 62 234 253 $args{$ak} //= $av->{'schema'}[1]{'default'}
785 54 119 2 __is_aoa($table_data) or __is_aoh($table_data)
794 2 0 0 __is_aoa($data) or __is_aoh($data)
839 1302 432 0 $fspecs->{$f}{'pos'} // $fspecs->{$f}{'index'}
851 48 0 138 $ftype eq 'str' || $ftype eq 'cistr'
1060 22 24 514 $args{'detail'} or $args{'fields'}
24 4 510 $args{'detail'} or $args{'fields'} or $args{'exclude_fields'}
1506 0 38 0 $args{'package'} // $caller[0]
1512 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"
1589 1 0 33 $args{'enable_random_ordering'} // $args{'enable_ordering'}

xor 4 conditions

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