Condition Coverage

blib/lib/Params/Sah.pm
Criterion Covered Total %
condition 35 50 70.0


and 3 conditions

line !l l&&!r l&&r condition
52 17 1 0 $opt_backend eq 'Data::Sah::Tiny' and $opt_invalid_detail
170 25 12 12 $mod_rec->{'use_statement'} and $_->{'use_statement'}
12 0 12 $mod_rec->{'use_statement'} and $_->{'use_statement'} and $_->{'use_statement'} eq $mod_rec->{'use_statement'}
180 15 12 0 $i and $opt_on_invalid =~ /\A(carp|warn)\z/

or 2 conditions

line l !l condition
43 18 0 (delete $opts->{'backend'} // $OPT_BACKEND) // 'Data::Sah'
46 16 0 (delete $opts->{'on_invalid'} // $OPT_ON_INVALID) // 'croak'
51 18 0 (delete $opts->{'invalid_detail'} // $OPT_INVALID_DETAIL) // 0
54 12 0 (delete $opts->{'named'} // $OPT_NAMED) // 0
55 17 0 (delete $opts->{'disable'} // $OPT_DISABLE) // 0
56 16 0 (delete $opts->{'allow_extra'} // $OPT_ALLOW_EXTRA) // 0
57 5 13 delete $opts->{'optional_params'} // []

or 3 conditions

line l !l&&r !l&&!r condition
43 1 18 0 delete $opts->{'backend'} // $OPT_BACKEND
46 3 16 0 delete $opts->{'on_invalid'} // $OPT_ON_INVALID
51 0 0 18 delete $opts->{'invalid_detail'} // $OPT_INVALID_DETAIL
54 6 1 11 delete $opts->{'named'} // $OPT_NAMED
55 1 1 16 delete $opts->{'disable'} // $OPT_DISABLE
56 2 2 14 delete $opts->{'allow_extra'} // $OPT_ALLOW_EXTRA
94 23 29 0 $err_term_generic // $err_term_detail
172 14 13 0 $mod_rec->{'use_statement'} // "require $mod_rec->{'name'}"