blib/lib/Perinci/Sub/GetArgs/Argv.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 99 | 132 | 75.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
200 | 17 | 35 | 2 | $arg_spec and $arg_spec->{'x.name.is_plural'} |
232 | 16 | 0 | 0 | defined $clset->{'is'} and not $clset->{'is'} |
15 | 0 | 1 | defined $clset->{'is_true'} and not $clset->{'is_true'} | |
297 | 156 | 17 | 25 | $type eq "array" and $clset->{'of'} |
352 | 0 | 71 | 5 | $val_set and $arg_spec->{'cmdline_on_getopt'} |
385 | 206 | 17 | 8 | $parent_args->{'per_arg_json'} and not $is_simple |
406 | 206 | 17 | 8 | $parent_args->{'per_arg_yaml'} and not $is_simple |
429 | 192 | 8 | 31 | $arg_spec->{'cmdline_aliases'} and not $aliases_processed++ |
443 | 23 | 3 | 9 | $alcode and $alsch->[0] eq "bool" |
991 | 10 | 1 | 2 | $res->[0] != 200 and $strict |
1 | 10 | 0 | $strict and $res->[0] != 200 | |
1007 | 6 | 0 | 3 | $arg_spec->{'slurpy'} // $arg_spec->{'greedy'} and ref $val eq "ARRAY" |
6 | 2 | 1 | $arg_spec->{'slurpy'} // $arg_spec->{'greedy'} and ref $val eq "ARRAY" and not $is_array_of_simple | |
2 | 0 | 1 | $arg_spec->{'slurpy'} // $arg_spec->{'greedy'} and ref $val eq "ARRAY" and not $is_array_of_simple and not $is_hash_of_simple |
line | l | !l | condition |
---|---|---|---|
139 | 1 | 0 | $res->{'clsets_after_type'}[0] // {} |
156 | 1 | 0 | $res->{'clsets_after_type'}[0] // {} |
175 | 1 | 0 | $res->{'clsets_after_type'}[0] // {} |
284 | 79 | 0 | $meta->{'args'} // {} |
291 | 0 | 198 | $arg_spec->{'tags'} // [] |
292 | 198 | 0 | $arg_spec->{'schema'} // ["any", {}] |
333 | 2 | 3 | $$rargs[$num_called - 1] //= {} |
341 | 7 | 9 | $rargs->{$arg} //= [] |
345 | 2 | 5 | $rargs->{$arg} //= {} |
364 | 49 | 182 | $extra //= {} |
472 | 0 | 0 | $$rargs[$num_called - 1] //= {} |
667 | 74 | 0 | $fargs{'common_opts'} // {} |
668 | 74 | 0 | $fargs{'per_arg_yaml'} // 0 |
669 | 74 | 0 | $fargs{'per_arg_json'} // 0 |
671 | 73 | 1 | $fargs{'args'} // {} |
935 | 72 | 1 | $fargs{'argv'} // \@ARGV |
941 | 2 | 71 | $fargs{'strict'} // 1 |
942 | 2 | 71 | $fargs{'common_opts'} // {} |
943 | 3 | 70 | $fargs{'per_arg_yaml'} // 0 |
944 | 3 | 70 | $fargs{'per_arg_json'} // 0 |
945 | 1 | 72 | $fargs{'allow_extra_elems'} // 0 |
951 | 3 | 70 | $fargs{'args'} // {} |
1084 | 32 | 95 | $args_prop->{$a}{'pos'} // 9999 |
26 | 101 | $args_prop->{$b}{'pos'} // 9999 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
105 | 2 | 0 | 182 | $clset->{'x.perl.coerce_rules'} // $clset->{'x.coerce_rules'} |
146 | 64 | 0 | 36 | $clset->{'of'} // $clset->{'each_elem'} |
165 | 35 | 0 | 44 | $clset->{'of'} // $clset->{'each_value'} |
0 | 0 | 44 | ($clset->{'of'} // $clset->{'each_value'}) // $clset->{'each_elem'} | |
198 | 35 | 19 | 170 | $is_array_of_simple or $is_hash_of_simple |
216 | 132 | 38 | 54 | $is_simple or not @opts |
232 | 1 | 0 | 17 | $clset->{'is'} or $clset->{'is_true'} |
0 | 0 | 16 | defined $clset->{'is'} and not $clset->{'is'} or defined $clset->{'is_true'} and not $clset->{'is_true'} | |
433 | 5 | 0 | 30 | $alspec->{'schema'} // $alspec->{'is_flag'} |
954 | 0 | 73 | 0 | $fargs{'ggls_res'} // gen_getopt_long_spec_from_meta("meta", $meta, "meta_is_normalized", 1, "args", $rargs, "common_opts", $common_opts, "per_arg_json", $per_arg_json, "per_arg_yaml", $per_arg_yaml, "ignore_converted_code", $ignore_converted_code) |
1007 | 3 | 0 | 6 | $arg_spec->{'slurpy'} // $arg_spec->{'greedy'} |
1036 | 3 | 0 | 6 | $arg_spec->{'slurpy'} // $arg_spec->{'greedy'} |
3 | 5 | 1 | $arg_spec->{'slurpy'} // $arg_spec->{'greedy'} or $is_simple | |
1063 | 2 | 0 | 0 | $arg_spec->{'slurpy'} // $arg_spec->{'greedy'} |