Condition Coverage

blib/lib/Perinci/Sub/GetArgs/Argv.pm
Criterion Covered Total %
condition 95 128 74.2


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 $cset->{'is'} and not $cset->{'is'}
15 0 1 defined $cset->{'is_true'} and not $cset->{'is_true'}
296 164 19 25 $type eq 'array' and $cset->{'of'}
368 0 76 5 $val_set and $arg_spec->{'cmdline_on_getopt'}
399 216 17 8 $parent_args->{'per_arg_json'} and not $is_simple
419 216 17 8 $parent_args->{'per_arg_yaml'} and not $is_simple
441 202 8 31 $arg_spec->{'cmdline_aliases'} and not $aliases_processed++
455 23 3 9 $alcode and $alsch->[0] eq 'bool'
999 10 1 2 $res->[0] != 200 and $strict
1 10 0 $strict and $res->[0] != 200
1015 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->[1][0] // {}
156 1 0 $res->[1][0] // {}
175 1 0 $res->[1][0] // {}
284 81 0 $meta->{'args'} // {}
290 0 208 $arg_spec->{'tags'} // []
291 208 0 $arg_spec->{'schema'} // ['any', {}]
332 2 3 $$rargs[$num_called - 1] //= {}
343 7 9 $rargs->{$arg} //= []
347 2 5 $rargs->{$arg} //= {}
379 49 192 $extra //= {}
484 0 0 $$rargs[$num_called - 1] //= {}
678 76 0 $fargs{'common_opts'} // {}
679 76 0 $fargs{'per_arg_yaml'} // 0
680 76 0 $fargs{'per_arg_json'} // 0
682 75 1 $fargs{'args'} // {}
943 74 1 $fargs{'argv'} // \@ARGV
949 2 73 $fargs{'strict'} // 1
950 2 73 $fargs{'common_opts'} // {}
951 3 72 $fargs{'per_arg_yaml'} // 0
952 3 72 $fargs{'per_arg_json'} // 0
953 1 74 $fargs{'allow_extra_elems'} // 0
959 3 72 $fargs{'args'} // {}

or 3 conditions

line l !l&&r !l&&!r condition
105 2 0 190 $cset->{'x.perl.coerce_rules'} // $cset->{'x.coerce_rules'}
146 64 0 40 $cset->{'of'} // $cset->{'each_elem'}
165 35 0 48 $cset->{'of'} // $cset->{'each_value'}
0 0 48 ($cset->{'of'} // $cset->{'each_value'}) // $cset->{'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 $cset->{'is'} or $cset->{'is_true'}
0 0 16 defined $cset->{'is'} and not $cset->{'is'} or defined $cset->{'is_true'} and not $cset->{'is_true'}
445 5 0 30 $alspec->{'schema'} // $alspec->{'is_flag'}
962 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)
1015 3 0 6 $arg_spec->{'slurpy'} // $arg_spec->{'greedy'}
1044 3 0 6 $arg_spec->{'slurpy'} // $arg_spec->{'greedy'}
3 5 1 $arg_spec->{'slurpy'} // $arg_spec->{'greedy'} or $is_simple
1071 2 0 0 $arg_spec->{'slurpy'} // $arg_spec->{'greedy'}