Condition Coverage

blib/lib/Perinci/Sub/GetArgs/Argv.pm
Criterion Covered Total %
condition 99 132 75.0


and 3 conditions

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 164 19 25 $type eq "array" and $clset->{'of'}
369 0 76 5 $val_set and $arg_spec->{'cmdline_on_getopt'}
402 216 17 8 $parent_args->{'per_arg_json'} and not $is_simple
423 216 17 8 $parent_args->{'per_arg_yaml'} and not $is_simple
446 202 8 31 $arg_spec->{'cmdline_aliases'} and not $aliases_processed++
460 23 3 9 $alcode and $alsch->[0] eq "bool"
1008 10 1 2 $res->[0] != 200 and $strict
1 10 0 $strict and $res->[0] != 200
1024 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

or 2 conditions

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 81 0 $meta->{'args'} // {}
291 0 208 $arg_spec->{'tags'} // []
292 208 0 $arg_spec->{'schema'} // ["any", {}]
333 2 3 $$rargs[$num_called - 1] //= {}
344 7 9 $rargs->{$arg} //= []
348 2 5 $rargs->{$arg} //= {}
381 49 192 $extra //= {}
489 0 0 $$rargs[$num_called - 1] //= {}
684 76 0 $fargs{'common_opts'} // {}
685 76 0 $fargs{'per_arg_yaml'} // 0
686 76 0 $fargs{'per_arg_json'} // 0
688 75 1 $fargs{'args'} // {}
952 74 1 $fargs{'argv'} // \@ARGV
958 2 73 $fargs{'strict'} // 1
959 2 73 $fargs{'common_opts'} // {}
960 3 72 $fargs{'per_arg_yaml'} // 0
961 3 72 $fargs{'per_arg_json'} // 0
962 1 74 $fargs{'allow_extra_elems'} // 0
968 3 72 $fargs{'args'} // {}
1101 37 97 $args_prop->{$a}{'pos'} // 9999
28 106 $args_prop->{$b}{'pos'} // 9999

or 3 conditions

line l !l&&r !l&&!r condition
105 2 0 190 $clset->{'x.perl.coerce_rules'} // $clset->{'x.coerce_rules'}
146 64 0 40 $clset->{'of'} // $clset->{'each_elem'}
165 35 0 48 $clset->{'of'} // $clset->{'each_value'}
0 0 48 ($clset->{'of'} // $clset->{'each_value'}) // $clset->{'each_elem'}
198 35 19 180 $is_array_of_simple or $is_hash_of_simple
216 138 42 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'}
450 5 0 30 $alspec->{'schema'} // $alspec->{'is_flag'}
971 0 75 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)
1024 3 0 6 $arg_spec->{'slurpy'} // $arg_spec->{'greedy'}
1053 3 0 6 $arg_spec->{'slurpy'} // $arg_spec->{'greedy'}
3 5 1 $arg_spec->{'slurpy'} // $arg_spec->{'greedy'} or $is_simple
1080 2 0 0 $arg_spec->{'slurpy'} // $arg_spec->{'greedy'}